MCPcopy Create free account
hub / github.com/srcbookdev/srcbook / teardown

Method teardown

packages/web/src/clients/websocket/client.ts:139–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 };
138
139 private teardown() {
140 if (this.socket) {
141 this.socket.removeEventListener('open', this.onOpen);
142 this.socket.removeEventListener('message', this.onMessage);
143 this.socket.removeEventListener('close', this.onClose);
144 this.socket.removeEventListener('error', this.onError);
145 }
146
147 this.socket = null;
148 }
149}

Callers 1

WebSocketClientClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected