Skip to main content

split

Function split 

Source
pub fn split<T>(
    ws: WebSocketStream<T>,
) -> (SinkWriter<Outgoing<T>>, StreamReader<Incoming<T>, Bytes>)
where T: AsyncRead + AsyncWrite + Unpin,
Expand description

Splits a WebSocketStream into wRPC byte-stream halves: an AsyncWrite outgoing half and an AsyncRead incoming half, suitable for use with wrpc_transport::frame.