Skip to main content

next_within

Function next_within 

Source
pub(crate) async fn next_within(
    socket: &mut WebSocketStream<MaybeTlsStream<TcpStream>>,
    seconds: u64,
) -> Option<Result<Message, Error>>
Expand description

The socket’s next message, or None once it stops arriving.