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

Method send

src/rpc.ts:24–24  ·  view source on GitHub ↗

* Sends a message to the other end. May optionally return a promise; if the promise rejects, * the session is aborted.

(message: string)

Source from the content-addressed store, hash-verified

22 * the session is aborted.
23 */
24 send(message: string): void | Promise<void>;
25
26 /**
27 * Receives a message sent by the other end.

Callers 8

constructorMethod · 0.65
sendMethod · 0.65
sendMethod · 0.65
sendMethod · 0.65
abortMethod · 0.65
sendMethod · 0.65
bun.test.tsFile · 0.65

Implementers 7

TestTransport__tests__/index.test.ts
WebSocketTransportsrc/websocket.ts
MessagePortTransportsrc/messageport.ts
ObjectTestTransport__tests__/index.test.ts

Calls

no outgoing calls

Tested by 1

sendMethod · 0.52