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

Method _publish

apps/collab-server/src/sockets.ts:695–702  ·  view source on GitHub ↗
(message: Uint8Array)

Source from the content-addressed store, hash-verified

693 }
694
695 private async _publish(message: Uint8Array) {
696 this.room.broadcastExcept(message, this.socket);
697
698 await getRedis().publish(
699 this.room.name,
700 Buffer.concat([getSelfPublisherIdBytes(), message]),
701 );
702 }
703
704 destroySocket() {
705 // Terminate socket

Callers 2

Calls 1

broadcastExceptMethod · 0.80

Tested by

no test coverage detected