request

open fun request(eventType: String, listener: EventListener)

Requests a response from the first listener to respond. The response is handled by the provided listener, after which the listener is removed.

Parameters

eventType

The type of Event to emit and expect a response from

listener

A listener to process the response. After processing, the response should be removed

See also


open fun request(eventType: String, properties: Map<String, Any>, listener: EventListener)

Requests a response from the first listener to respond. The response is handled by the provided listener, after which the listener is removed. The provided properties map is passed on to the responding listener

Parameters

eventType

The type of Event to emit and expect a response from

properties

A Map of properties to pass along the event chain

listener

A listener to process the response. After processing, the response should be removed

See also