MCPcopy Index your code
hub / github.com/Effect-TS/effect / onMessage

Function onMessage

packages/platform-bun/src/internal/worker.ts:32–34  ·  view source on GitHub ↗
(event: MessageEvent)

Source from the content-addressed store, hash-verified

30 },
31 listen({ deferred, emit, port, scope }) {
32 function onMessage(event: MessageEvent) {
33 emit(event.data)
34 }
35 function onError(event: ErrorEvent) {
36 Deferred.unsafeDone(
37 deferred,

Callers

nothing calls this directly

Calls 1

emitFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…