Interface: KyooConnectionEvents
Describes the events and their callbacks for a KyooConnection instance
Events
Event | Type | Description |
---|---|---|
[captureRejectionSymbol] | (err : Error , event : EventName , ...args : any []) => EventCallbackResult | Called in case a promise rejection happens when emitting an event |
connected | () => EventCallbackResult | Called when the connection is established |
connecting | () => EventCallbackResult | Called when the connection is in the process of connecting but not yet established |
connectionStatusChanged | (status : ConnectionStatus ) => EventCallbackResult | Called when the connection status changes |
disconnected | () => EventCallbackResult | Called when the connection is disconnected |
log.alert | (...args : any []) => EventCallbackResult | Called when an "alert" level log is emitted |
log.crit | (...args : any []) => EventCallbackResult | Called when a "crit" level log is emitted |
log.debug | (...args : any []) => EventCallbackResult | Called when a "debug" level log is emitted |
log.emerg | (...args : any []) => EventCallbackResult | Called when an "emerg" level log is emitted |
log.error | (...args : any []) => EventCallbackResult | Called when an "error" level log is emitted |
log.info | (...args : any []) => EventCallbackResult | Called when an "info" level log is emitted |
log.notice | (...args : any []) => EventCallbackResult | Called when a "notice" level log is emitted |
log.trace | (...args : any []) => EventCallbackResult | Called when a "trace" level log is emitted |
log.warning | (...args : any []) => EventCallbackResult | Called when a "warning" level log is emitted |