fun dispatchAndAwait(agent: Agent, message: OutboundMessage): Maybe<String>
Dispatches the message and awaits the response.
agent
- for which to dispatch the message
message
- the dispatched message
Return
Maybe with String is the received response.
protected abstract fun dispatchAndAwait(packed: OutboundPackage): Maybe<String>
Dispatches the package and awaits the response.
packed
- is the OutboundPackage with payload and endpoint URI.