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

Function terminateSocket

packages/opencode/src/plugin/openai/ws.ts:154–157  ·  view source on GitHub ↗
(target = socket)

Source from the content-addressed store, hash-verified

152 }
153
154 function terminateSocket(target = socket) {
155 target.on("error", () => {})
156 target.terminate()
157 }
158
159 function closeCompleted() {
160 cleanup()

Callers 3

onMessageFunction · 0.85
onAbortFunction · 0.85
onCancelFunction · 0.85

Calls 1

onMethod · 0.80

Tested by

no test coverage detected