My understanding is that currently WebRtcChannel supports sync but non-blocking API. It would be cool to have full AsyncRead and AsyncWrite support. It is already possible to take a channel from the socket with WebRtcSocket::take_channel.
Is something like this possible? The UnboundedSender/UnboundedReceiver already implement Sink/Stream for (PeerId, Box<[u8]>) which could be leveraged for such an implementation.
My understanding is that currently
WebRtcChannel
supports sync but non-blocking API. It would be cool to have fullAsyncRead
andAsyncWrite
support. It is already possible to take a channel from the socket withWebRtcSocket::take_channel
.What about having a
Is something like this possible? The
UnboundedSender/UnboundedReceiver
already implementSink/Stream
for(PeerId, Box<[u8]>)
which could be leveraged for such an implementation.