aries / net.globalid.aries.transport / MessageDispatcher / dispatchAndAwait

dispatchAndAwait

fun dispatchAndAwait(agent: Agent, message: OutboundMessage): Maybe<String>

Dispatches the message and awaits the response.

Parameters

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.

Parameters

packed - is the OutboundPackage with payload and endpoint URI.

Return
Maybe with String is the received response.