MCPcopy Index your code
hub / github.com/anomalyco/opencode / send

Function send

packages/tui/src/context/editor.ts:162–165  ·  view source on GitHub ↗
(payload: JsonRpcMessage)

Source from the content-addressed store, hash-verified

160 }
161
162 const send = (payload: JsonRpcMessage) => {
163 if (!socket || socket.readyState !== 1) return
164 socket.send(JSON.stringify({ jsonrpc: "2.0", ...payload }))
165 }
166
167 const request = (method: string, params?: unknown) => {
168 requestID += 1

Callers 2

requestFunction · 0.70
connectFunction · 0.70

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected