MCPcopy
hub / github.com/nestjs/nest / on

Method on

packages/common/interfaces/nest-microservice.interface.ts:78–78  ·  view source on GitHub ↗

* Registers an event listener for the given event. * @param event Event name * @param callback Callback to be executed when the event is emitted

(
    event: EventKey,
    callback: EventCallback,
  )

Source from the content-addressed store, hash-verified

76 * @param callback Callback to be executed when the event is emitted
77 */
78 on<
79 EventsMap extends Record<string, Function> = Record<string, Function>,
80 EventKey extends keyof EventsMap = keyof EventsMap,
81 EventCallback extends EventsMap[EventKey] = EventsMap[EventKey],

Callers 15

writtenFunction · 0.65
writtenFunction · 0.65
replFunction · 0.65
bindClientConnectFunction · 0.65
bindClientDisconnectFunction · 0.65
constructorMethod · 0.65
replyMethod · 0.65
trackOpenConnectionsMethod · 0.65
onMethod · 0.65

Implementers 1

NestMicroservicepackages/microservices/nest-microservi

Calls

no outgoing calls

Tested by 3

writtenFunction · 0.52
writtenFunction · 0.52
waitForReplToStartFunction · 0.52