Skip to main content

handle_message

Function handle_message 

Source
async fn handle_message<S>(
    socket: &mut ClientSocket<S>,
    state: &Arc<TransportState>,
    watching: &mut Watching,
    holds: &mut Holds<'_>,
    updates: &mut Option<(UnboundedReceiver<SeatUpdate>, bool)>,
    dictate: &mut Streaming,
    viewers: &mut Viewers,
    reads: &mut Reads,
    arrival: Arrival,
    client: ClientMessage,
) -> Result<()>
where S: Sink<Message, Error = Error> + Unpin + Send,
Expand description

handle_client with the message already read, so a subscribe that queued behind a read off the loop takes the same path the socket’s own did.