Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/anomalyco/opencode
/ close
Method
close
packages/opencode/test/lib/websocket.ts:27–32 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
25
}
26
27
close() {
28
if
(this.readyState === FakeWebSocket.CLOSED)
return
29
this.closed = true
30
this.readyState = FakeWebSocket.CLOSED
31
this.emit(
"close"
, {})
32
}
33
34
open() {
35
this.readyState = FakeWebSocket.OPEN
Callers
1
sharedRun
Function · 0.45
Calls
1
emit
Method · 0.95
Tested by
no test coverage detected