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

Method send

packages/@stdlib/misc/src/client-socket.ts:96–108  ·  view source on GitHub ↗
(message: Uint8Array, callback?: () => void)

Source from the content-addressed store, hash-verified

94 }
95
96 send(message: Uint8Array, callback?: () => void) {
97 if (this.connected) {
98 this.socket?.send(message);
99
100 callback?.();
101 } else {
102 void this.connectPromise?.then(() => {
103 this.socket?.send(message);
104
105 callback?.();
106 });
107 }
108 }
109 },
110);

Callers 15

sendSendGridMailFunction · 0.80
broadcastMethod · 0.80
broadcastExceptMethod · 0.80
sendErrorAndDisconnectFunction · 0.80
handleFunction · 0.80
sendStatusToWindowFunction · 0.80
render.jsFile · 0.80

Calls 1

thenMethod · 0.80

Tested by

no test coverage detected