MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / close

Function close

src/webui/workspaces-ipc.ts:90–96  ·  view source on GitHub ↗
(connectionId: string, code: number, reason: string)

Source from the content-addressed store, hash-verified

88 const sockets = new Map<string, IpcPtySocket>()
89
90 const close = (connectionId: string, code: number, reason: string): void => {
91 try {
92 process.send?.({ type: MSG_SERVER_CLOSE, connectionId, code, reason })
93 } catch {
94 // Parent may already be gone.
95 }
96 }
97
98 const onMessage = (raw: unknown): void => {
99 const msg = raw && typeof raw === 'object' ? raw as BridgeMessage : null

Callers 1

onMessageFunction · 0.70

Calls 1

sendMethod · 0.65

Tested by

no test coverage detected