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

Function cleanup

packages/opencode/src/plugin/openai/ws.ts:100–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 : undefined
99
100 function cleanup() {
101 if (timeout) clearTimeout(timeout)
102 socket.off("open", onOpen)
103 socket.off("error", onError)
104 socket.off("close", onClose)
105 options.signal?.removeEventListener("abort", onAbort)
106 }
107
108 function onOpen() {
109 cleanup()

Callers 12

onOpenFunction · 0.70
onErrorFunction · 0.70
onCloseFunction · 0.70
onAbortFunction · 0.70
closeCompletedFunction · 0.70
invalidateFunction · 0.70
onMessageFunction · 0.70
onCancelFunction · 0.70
processor.tsFile · 0.50
truncate.tsFile · 0.50
index.tsFile · 0.50

Calls 2

cleanupSocketFunction · 0.85
offMethod · 0.80

Tested by

no test coverage detected