MCPcopy
hub / github.com/infinitered/reactotron / on

Method on

lib/reactotron-core-server/src/reactotron-core-server.ts:138–140  ·  view source on GitHub ↗

* Listens to an event.

(event: ServerEventKey, handler: CommandEvent | WebSocketEvent)

Source from the content-addressed store, hash-verified

136 * Listens to an event.
137 */
138 on(event: ServerEventKey, handler: CommandEvent | WebSocketEvent) {
139 this.emitter.on(event, handler)
140 }
141
142 /**
143 * Turns off an event listener

Callers 15

createClosingServerFunction · 0.95
send.test.tsFile · 0.80
connectClientFunction · 0.80
configure.test.tsFile · 0.80
ServerClass · 0.80
send.test.tsFile · 0.80
on-command.test.tsFile · 0.80
connectMethod · 0.80
constructorMethod · 0.80

Calls

no outgoing calls

Tested by 4

connectClientFunction · 0.64
mcpRequestFunction · 0.64
connectMockAppFunction · 0.64
connectAppWithConfigFunction · 0.64