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

Method unwireWs

src/workspaces/persistent-session.ts:546–553  ·  view source on GitHub ↗
(ws: WebSocket)

Source from the content-addressed store, hash-verified

544 }
545
546 private unwireWs(ws: WebSocket): void {
547 if (this.messageHandler) ws.off('message', this.messageHandler);
548 if (this.closeHandler) ws.off('close', this.closeHandler);
549 if (this.errorHandler) ws.off('error', this.errorHandler);
550 this.messageHandler = null;
551 this.closeHandler = null;
552 this.errorHandler = null;
553 }
554
555 private resize(cols: number, rows: number): void {
556 const c = clamp(Math.floor(cols), 1, MAX_DIM);

Callers 3

attachMethod · 0.95
detachMethod · 0.95
disposeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected