createMessageChannel

abstract fun createMessageChannel(messages: Flow<Message>): Flow<ErrorPayload>

Creates a channel for sending messages to hub-server. Even though, the channel is bidirectional, the response is empty in case of success and only in cases of error values are emitted in stream.

Note: the connection is not initiated until someone collects/subscribes to it.

Verification

Hub-server expects to call the verification API as part of verification process when a server-client receives successfully the message.