subscribe

fun subscribe(subscriber: EventSubscriber)

Method to register a subscriber for Event

Parameters

subscriber

An instance of EventSubscriber which needs to be subscribed