MCPcopy
hub / github.com/nukeop/nuclear / on

Method on

packages/plugin-sdk/src/api/events.ts:22–27  ·  view source on GitHub ↗
(
    event: E,
    listener: PluginEventListener<E>,
  )

Source from the content-addressed store, hash-verified

20 }
21
22 on<E extends keyof PluginEventMap>(
23 event: E,
24 listener: PluginEventListener<E>,
25 ): () => void {
26 return this.#withHost((host) => host.on(event, listener));
27 }
28}

Callers 3

initDiscoveryServiceFunction · 0.80
eventBus.test.tsFile · 0.80

Calls 1

#withHostMethod · 0.95

Tested by

no test coverage detected