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

Method addSocket

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

Source from the content-addressed store, hash-verified

534 }
535
536 private addSocket(channelId: string, ws: WebSocket): void {
537 const sockets = this.socketsByChannel.get(channelId) ?? new Set<WebSocket>();
538 sockets.add(ws);
539 this.socketsByChannel.set(channelId, sockets);
540 }
541
542 private removeSocket(channelId: string, ws: WebSocket): void {
543 const sockets = this.socketsByChannel.get(channelId);

Callers 1

handleWsConnectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected