on

fun <T : ClientEvent> on(type: Class<T>): Flux<T>

Listen to events from the node. Please note that uncaught exceptions will cause the listener to stop emitting events.

Return

a Flux of ClientEvents

Parameters

type

the ClientEvent to listen for


inline fun <T : ClientEvent> on(): Flux<T>

Listen to events from the node. Please note that uncaught exceptions will cause the listener to stop emitting events.

Return

a Flux of ClientEvents