fun bindSync(event: String, callback: (args: Map<String, Any>) -> Unit): ObservableCallback
Binds to an event by providing a block that will receive the event payload as a
parameter. The block will be executed synchronously, for costly operations prefer
the use of
event - Name of the event to bind to.
callback - Block to be executed synchronously when the event is triggered.
Returns the callback instance created, to be used when unbinding from the event.