MCPcopy 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

startFunction · 0.70

Calls 5

terminateSocketFunction · 0.85
onMethod · 0.80
cleanupFunction · 0.70
abortErrorFunction · 0.70
rejectFunction · 0.50

Tested by

no test coverage detected