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.
response - A dictionary with the payload of the event
A Deferred that may be completed asynchronously