register
suspend fun <T : Any> register(channel: String, type: String, context: Any, callback: EventCallback<T>): Boolean
Registers new event callback.
Return
true
if the channel is not already subscribed
Parameters
channel
channel of registered event
type
type of registered event
context
ID of registered callback
callback
block of code to call when the specified event has been caught