Skip to main content

handle_connection

Function handle_connection 

Source
pub async fn handle_connection(
    ws: WebSocket,
    state: Arc<RwLock<ServerState>>,
    broadcast_tx: Arc<Sender<String>>,
)
Expand description

Handle a WebSocket connection