Skip to content

Interface: KyooConnectionEvents

Describes the events and their callbacks for a KyooConnection instance

Events

EventTypeDescription
[captureRejectionSymbol](err: Error, event: EventName, ...args: any[]) => EventCallbackResultCalled in case a promise rejection happens when emitting an event
connected() => EventCallbackResultCalled when the connection is established
connecting() => EventCallbackResultCalled when the connection is in the process of connecting but not yet established
connectionStatusChanged(status: ConnectionStatus) => EventCallbackResultCalled when the connection status changes
disconnected() => EventCallbackResultCalled when the connection is disconnected
log.alert(...args: any[]) => EventCallbackResultCalled when an "alert" level log is emitted
log.crit(...args: any[]) => EventCallbackResultCalled when a "crit" level log is emitted
log.debug(...args: any[]) => EventCallbackResultCalled when a "debug" level log is emitted
log.emerg(...args: any[]) => EventCallbackResultCalled when an "emerg" level log is emitted
log.error(...args: any[]) => EventCallbackResultCalled when an "error" level log is emitted
log.info(...args: any[]) => EventCallbackResultCalled when an "info" level log is emitted
log.notice(...args: any[]) => EventCallbackResultCalled when a "notice" level log is emitted
log.trace(...args: any[]) => EventCallbackResultCalled when a "trace" level log is emitted
log.warning(...args: any[]) => EventCallbackResultCalled when a "warning" level log is emitted