MCPcopy Create free account
hub / github.com/freecodexyz/free-code / send

Method send

src/services/mcp/InProcessTransport.ts:26–35  ·  view source on GitHub ↗
(message: JSONRPCMessage)

Source from the content-addressed store, hash-verified

24 async start(): Promise<void> {}
25
26 async send(message: JSONRPCMessage): Promise<void> {
27 if (this.closed) {
28 throw new Error('Transport is closed')
29 }
30 // Deliver to the other side asynchronously to avoid stack depth issues
31 // with synchronous request/response cycles
32 queueMicrotask(() => {
33 this.peer?.onmessage?.(message)
34 })
35 }
36
37 async close(): Promise<void> {
38 if (this.closed) {

Callers 8

countTokensWithBedrockFunction · 0.45
sendFunction · 0.45
finalizeFunction · 0.45
connectVoiceStreamFunction · 0.45
sendMessageMethod · 0.45
sendInterruptMethod · 0.45
sendErrorResponseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected