MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / send

Function send

crates/opencode-plugin/host/plugin-host.ts:140–142  ·  view source on GitHub ↗
(response: JsonRpcResponse)

Source from the content-addressed store, hash-verified

138}
139
140function send(response: JsonRpcResponse): void {
141 process.stdout.write(encodeResponse(response));
142}
143
144function sendNotification(method: string, params?: unknown): void {
145 const body = JSON.stringify({

Callers 2

sendResultFunction · 0.85
sendErrorFunction · 0.85

Calls 1

encodeResponseFunction · 0.85

Tested by

no test coverage detected