fix(client): Improve IPC client robustness and daemon debug logging; update tests and package metadata
This commit is contained in:
@@ -56,6 +56,17 @@ export class TspmDaemon {
|
||||
heartbeatThrowOnTimeout: false, // Don't throw, emit events instead
|
||||
});
|
||||
|
||||
// Debug hooks for connection troubleshooting
|
||||
this.ipcServer.on('clientConnect', (clientId: string) => {
|
||||
console.log(`[IPC] client connected: ${clientId}`);
|
||||
});
|
||||
this.ipcServer.on('clientDisconnect', (clientId: string) => {
|
||||
console.log(`[IPC] client disconnected: ${clientId}`);
|
||||
});
|
||||
this.ipcServer.on('error', (err: any) => {
|
||||
console.error('[IPC] server error:', err?.message || err);
|
||||
});
|
||||
|
||||
// Register message handlers
|
||||
this.registerHandlers();
|
||||
|
||||
|
Reference in New Issue
Block a user