messageInbox

abstract val messageInbox: ReceiveChannel<String>

A channel of raw incoming JSON strings from the remote peer.

The implementation is responsible for feeding every incoming message into this channel. The channel must be closed when the underlying connection ends (either cleanly or due to an error), so that JsonRpc can detect the disconnection and terminate its internal loops.