Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/anomalyco/opencode
/ message
Method
message
packages/opencode/test/lib/websocket.ts:39–41 ·
view source on GitHub ↗
(data: unknown)
Source
from the content-addressed store, hash-verified
37
}
38
39
message(data: unknown) {
40
this.emit(
"message"
, { data })
41
}
42
43
emit(
type
: string, event: { data?: unknown }) {
44
this.listeners.get(
type
)?.forEach((listener) => listener(event))
Callers
6
sendSelection
Function · 0.45
editor-context.test.tsx
File · 0.45
message-v2.test.ts
File · 0.45
transform.test.ts
File · 0.45
httpapi-sdk.test.ts
File · 0.45
index.ts
File · 0.45
Calls
1
emit
Method · 0.95
Tested by
1
sendSelection
Function · 0.36