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

Method broadcastExcept

apps/collab-server/src/rooms.ts:58–64  ·  view source on GitHub ↗
(message: Uint8Array, exception: WebSocket)

Source from the content-addressed store, hash-verified

56 }
57 }
58 broadcastExcept(message: Uint8Array, exception: WebSocket) {
59 for (const socket of this._sockets) {
60 if (socket !== exception) {
61 socket.send(message);
62 }
63 }
64 }
65
66 destroy() {
67 rooms.delete(this.name);

Callers 1

_publishMethod · 0.80

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected