Files
NapCatQQ/.pnpm-store/v3/files/58/61e694f5d3c6fdb647fccf720a6c72e10ab0ba06cd0d88d3afd71a927df8186e605c188977d31be0ea5fc7650f3280a8d111a2563e03666bb14a9a268ca063
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

22 lines
848 B
Plaintext

"use strict";
/**
* Copyright (c) 2020, Microsoft Corporation (MIT License).
*/
Object.defineProperty(exports, "__esModule", { value: true });
var worker_threads_1 = require("worker_threads");
var net_1 = require("net");
var conout_1 = require("../shared/conout");
var conoutPipeName = worker_threads_1.workerData.conoutPipeName;
var conoutSocket = new net_1.Socket();
conoutSocket.setEncoding('utf8');
conoutSocket.connect(conoutPipeName, function () {
var server = net_1.createServer(function (workerSocket) {
conoutSocket.pipe(workerSocket);
});
server.listen(conout_1.getWorkerPipeName(conoutPipeName));
if (!worker_threads_1.parentPort) {
throw new Error('worker_threads parentPort is null');
}
worker_threads_1.parentPort.postMessage(1 /* READY */);
});
//# sourceMappingURL=conoutSocketWorker.js.map