Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/anomalyco/opencode
/ emit
Method
emit
packages/opencode/test/lib/websocket.ts:43–45 ·
view source on GitHub ↗
(type: string, event: { data?: unknown })
Source
from the content-addressed store, hash-verified
41
}
42
43
emit(
type
: string, event: { data?: unknown }) {
44
this.listeners.get(
type
)?.forEach((listener) => listener(event))
45
}
46
}
Callers
4
close
Method · 0.95
open
Method · 0.95
message
Method · 0.95
oauth-browser.test.ts
File · 0.45
Calls
2
get
Method · 0.65
listener
Function · 0.50
Tested by
no test coverage detected