diff --git a/server/src/api.rs b/server/src/api.rs index e83a581..90e72d3 100644 --- a/server/src/api.rs +++ b/server/src/api.rs @@ -45,6 +45,7 @@ pub async fn on_websocket_connection(stream: WebSocket, state: Arc, ad )) .await; + // Add user to users using `addr` until something longer lived exists state.users.lock().unwrap().insert(addr, new_user); // hydrate user