createRejectedMessageChannel

abstract fun createRejectedMessageChannel(messages: Flow<RejectedMessage>): Flow<ErrorPayload>

Creates a channel for sending rejected 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.

Experimental API

This API is still under development, which means that the design of the declaration may (or may not) change in the future in some way that may break the code. See issue #321 to track the implementation.