// read and write buffers are usually quite small (4KB) and can be smaller
// than the frame buffer but use whatever is is appropriate for your stream
read and write buffers are usually quite small (4KB) and can be smaller
than the frame buffer but use whatever is is appropriate for your stream
read and write buffers are usually quite small ( 4KB ) and can be smaller than the frame buffer but use whatever is is appropriate for your stream
pub fn new(
        read_buf: &'a mut [u8],
        read_cursor: &'a mut usize,
        write_buf: &'a mut [u8],
        websocket: &'a mut WebSocket<TRng, TWebSocketType>,
    ) -> Self {
        Self {
            read_buf,
            write_buf,
            read_cursor,
            frame_cursor: 0,
            read_len: 0,
            websocket,
        }
    }
pub fn new ( read_buf : & ' a mut [ u8 ] , read_cursor : & ' a mut usize , write_buf : & ' a mut [ u8 ] , websocket : & ' a mut WebSocket < TRng , TWebSocketType > , ) -> Self { Self { read_buf , write_buf , read_cursor , frame_cursor : 0 , read_len : 0 , websocket , } }
read and write buffers are usually quite small (4KB) and can be smaller
than the frame buffer but use whatever is is appropriate for your stream
read and write buffers are usually quite small ( 4KB ) and can be smaller than the frame buffer but use whatever is is appropriate for your stream
read_buf
&'a mut [u8]
read_cursor
&'a mut usize
write_buf
&'a mut [u8]
websocket
&'a mut WebSocket<TRng, TWebSocketType>