abstract class EventBus::EventHandler

Defined in:

eventbus/event.cr

Instance Method Summary

Instance Method Detail

def on_close : Nil #

Method invoked when Application is going to close. Override this method, if you need to perform some cleanups


[View source]
def on_connect : Nil #

Method invoked when Listener is connected to PG. Override this method, if you need to perform some work


[View source]
abstract def on_event(event : Event) : Nil #

Method invoked whenever there is new Event received.


[View source]
def on_start : Nil #

Method invoked when Application is going to start. Override this method, if you need to perform some work


[View source]