MCPcopy Create free account
hub / github.com/different-ai/opencode-browser / writeJsonLine

Function writeJsonLine

src/agent-backend.ts:58–60  ·  view source on GitHub ↗
(socket: net.Socket, msg: any)

Source from the content-addressed store, hash-verified

56}
57
58function writeJsonLine(socket: net.Socket, msg: any): void {
59 socket.write(JSON.stringify(msg) + "\n");
60}
61
62async function sleep(ms: number): Promise<void> {
63 return await new Promise((resolve) => setTimeout(resolve, ms));

Callers 1

agentRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected