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

Method closeHandler

src/workspaces/persistent-session.ts:534–536  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

532 const messageHandler = (raw: unknown, isBinary: boolean): void =>
533 this.onWsMessage(ws, raw, isBinary);
534 const closeHandler = (): void => {
535 if (this.ws === ws) this.detach();
536 };
537 const errorHandler = closeHandler;
538 ws.on('message', messageHandler);
539 ws.on('close', closeHandler);

Callers

nothing calls this directly

Calls 1

detachMethod · 0.95

Tested by

no test coverage detected