Skip to main content

read_one

Function read_one 

Source
pub(crate) async fn read_one(
    socket: &mut WebSocketStream<MaybeTlsStream<TcpStream>>,
    arm: &mut Measured,
) -> Result<ServerMessage>
Expand description

The next answer on the socket, counted into arm.

The greeting and anything a live core pushes while this runs are read and passed over rather than counted: an arm’s denominator is what the ask it made was answered with, not everything the socket happened to say.