readFromChannel

abstract fun readFromChannel(from: Entity, to: Entity): Either<ProtocolError, Flow<ByteArray>>

Starts listening for messages flowing from an Entity another Entity. The returned Flow is a hot stream of messages that can be consumed by the runtime.

This method can either succeed or fail with a ProtocolError. Fails if the from and to entities are not registered in the protocol via the setupChannel method.