MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / removeSocket

Method removeSocket

apps/collab-server/src/rooms.ts:45–51  ·  view source on GitHub ↗
(socket: WebSocket)

Source from the content-addressed store, hash-verified

43 this._sockets.add(socket);
44 }
45 removeSocket(socket: WebSocket) {
46 this._sockets.delete(socket);
47
48 if (this._sockets.size === 0) {
49 this.destroy();
50 }
51 }
52
53 broadcast(message: Uint8Array) {
54 for (const socket of this._sockets) {

Callers 1

destroySocketMethod · 0.80

Calls 2

destroyMethod · 0.95
deleteMethod · 0.45

Tested by

no test coverage detected