MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / onEvent

Method onEvent

src/runtime/adapters/web.ts:510–513  ·  view source on GitHub ↗
(event: AgentEvent)

Source from the content-addressed store, hash-verified

508
509 // Regular message → stream events via WebSocket
510 const onEvent = (event: AgentEvent) => {
511 sendWsEvent(ws, event);
512 this.ipcBroadcaster?.broadcastAgentEvent(channelId, event);
513 };
514
515 const result = await agent.handleMessage("web", channelId, text, onEvent);
516

Callers

nothing calls this directly

Calls 2

sendWsEventFunction · 0.85
broadcastAgentEventMethod · 0.65

Tested by

no test coverage detected