typealias ObservableCallback = (args: Map<String, Any>) -> Deferred<Any?>?
A function to be executed when an event. It receives a dictionary with the response as parameter and returns a deferred result which is completed asynchronously.
args - A dictionary with the payload of the event
A Deferred that may be completed asynchronously