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

Function closeMessage

packages/opencode/src/plugin/openai/ws.ts:374–379  ·  view source on GitHub ↗
(message: string, code: number, reason: Buffer)

Source from the content-addressed store, hash-verified

372}
373
374function closeMessage(message: string, code: number, reason: Buffer) {
375 const details = [`code ${code}`]
376 if (code === 1009) details.push("message too big")
377 if (reason.length > 0) details.push(reason.toString())
378 return `${message} (${details.join(": ")})`
379}
380
381export * as OpenAIWebSocket from "./ws"

Callers 1

onCloseFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected