MCPcopy
hub / github.com/cloudflare/capnweb / send

Method send

src/websocket.ts:98–105  ·  view source on GitHub ↗
(message: T)

Source from the content-addressed store, hash-verified

96 #error?: any;
97
98 send(message: T): void {
99 if (this.#sendQueue === undefined) {
100 this.#webSocket.send(message);
101 } else {
102 // Not open yet, queue for later.
103 this.#sendQueue.push(message);
104 }
105 }
106
107 receive(): Promise<T> {
108 if (this.#receiveQueue.length > 0) {

Callers

nothing calls this directly

Calls 1

sendMethod · 0.65

Tested by

no test coverage detected