Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ onAbort
Function
onAbort
packages/opencode/src/plugin/openai/ws.ts:124–129 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
122
}
123
124
function
onAbort() {
125
cleanup()
126
socket.on(
"error"
, () => {})
127
socket.terminate()
128
reject(abortError(options.signal))
129
}
130
131
socket.once(
"open"
, onOpen)
132
socket.once(
"error"
, onError)
Callers
1
start
Function · 0.70
Calls
5
terminateSocket
Function · 0.85
on
Method · 0.80
cleanup
Function · 0.70
abortError
Function · 0.70
reject
Function · 0.50
Tested by
no test coverage detected