This commit is contained in:
2026-07-07 01:39:38 +02:00
parent 30d928ddde
commit 4fef4f5162
2 changed files with 98 additions and 215 deletions
-1
View File
@@ -42,7 +42,6 @@ async fn handle_socket(socket: WebSocket, state: AppState, user: User) {
let (tx, mut rx) = mpsc::unbounded_channel::<Message>();
let mut client = GatewayClient::new(user, tx, state.event_bus.clone());
client.subscribe_to_events();
client.on_connect().await;
state.gateway.add_client(client.clone());