Skip to main content

connection

Function connection 

Source
pub(crate) async fn connection(
    socket: WebSocket,
    writer: UnboundedSender<Request>,
)
Expand description

One connection: a pump forwarding the writer’s messages to the socket, and this loop forwarding the socket’s submissions to the writer.