MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / removeSocket

Method removeSocket

src/runtime/adapters/web.ts:542–552  ·  view source on GitHub ↗
(channelId: string, ws: WebSocket)

Source from the content-addressed store, hash-verified

540 }
541
542 private removeSocket(channelId: string, ws: WebSocket): void {
543 const sockets = this.socketsByChannel.get(channelId);
544 if (!sockets) {
545 return;
546 }
547
548 sockets.delete(ws);
549 if (sockets.size === 0) {
550 this.socketsByChannel.delete(channelId);
551 }
552 }
553}

Callers 1

handleWsConnectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected