Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ onOpen
Function
onOpen
packages/opencode/src/plugin/openai/ws.ts:108–111 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
106
}
107
108
function
onOpen() {
109
cleanup()
110
resolve(socket)
111
}
112
113
function
onError(error: unknown) {
114
socket.on(
"error"
, () => {})
Callers
nothing calls this directly
Calls
2
cleanup
Function · 0.70
resolve
Function · 0.50
Tested by
no test coverage detected