MCPcopy
hub / github.com/wechaty/wechaty / on

Method on

src/wechaty.ts:335–342  ·  view source on GitHub ↗
(event: WechatyEventName, listener: (...args: any[]) => any)

Source from the content-addressed store, hash-verified

333 }
334
335 public on (event: WechatyEventName, listener: (...args: any[]) => any): this {
336 log.verbose('Wechaty', 'on(%s, listener) registering... listenerCount: %s',
337 event,
338 this.listenerCount(event),
339 )
340
341 return super.on(event, listener)
342 }
343
344 /**
345 * @param {WechatyPlugin[]} plugins - The plugins you want to use

Callers 15

startMethod · 0.95
testTcpMethod · 0.80
initPuppetEventBridgeMethod · 0.80
config.tsFile · 0.80
startMethod · 0.80
initEventHookMethod · 0.80
initWebSocketMethod · 0.80
wsOnCloseMethod · 0.80
wechaty.spec.tsFile · 0.80
myGlobalPluginFunction · 0.80
myPluginFunction · 0.80
startMethod · 0.80

Calls

no outgoing calls

Tested by 2

myGlobalPluginFunction · 0.64
myPluginFunction · 0.64