fix: Update pipe path handling for cross-platform compatibility in ChildWorker and PipeName
This commit is contained in:
@@ -206,9 +206,12 @@ function sleep(ms, signal) {
|
||||
// Main
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
// .NET uses different pipe paths per platform:
|
||||
// - Windows: \\.\pipe\{pipeName}
|
||||
// - Unix/macOS: /tmp/CoreFxPipe_{pipeName}
|
||||
const pipePath = process.platform === 'win32'
|
||||
? `\\\\.\\pipe\\${pipeName}`
|
||||
: `/tmp/${pipeName}`;
|
||||
: `/tmp/CoreFxPipe_${pipeName}`;
|
||||
|
||||
const socket = net.createConnection(pipePath, () => {
|
||||
// Connection established - send hello
|
||||
|
||||
Reference in New Issue
Block a user