fix(ipc): Propagate per-client disconnects, add proper routing for targeted messages, and remove unused node-ipc deps

This commit is contained in:
2025-08-29 17:02:50 +00:00
parent 44770bf820
commit 1c08df8e6a
7 changed files with 53 additions and 223 deletions

View File

@@ -267,7 +267,8 @@ export class UnixSocketTransport extends IpcTransport {
this.clientIdToSocket.delete(clientId);
}
this.socketToClientId.delete(socket);
this.emit('clientDisconnected', socket);
// Emit with clientId if known so higher layers can react
this.emit('clientDisconnected', socket, clientId);
});
socket.on('drain', () => {