Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
onMessage
Function · 0.85
onAbort
Function · 0.85
onCancel
Function · 0.85
Calls
1
on
Method · 0.80
Tested by
no test coverage detected