MCPcopy
hub / github.com/vitest-dev/vitest / send

Function send

test/browser/specs/inspect.test.ts:86–94  ·  view source on GitHub ↗
(message: Message)

Source from the content-addressed store, hash-verified

84 }
85
86 async function send(message: Message): Promise<any> {
87 const currentId = id++
88 const json = JSON.stringify({ ...message, id: currentId })
89
90 const receiver = receive({ id: currentId })
91 ws.send(json)
92
93 return receiver
94 }
95
96 await new Promise((resolve, reject) => {
97 ws.onerror = reject

Callers 1

inspect.test.tsFile · 0.70

Calls 2

receiveFunction · 0.70
sendMethod · 0.45

Tested by

no test coverage detected