diff --git a/src/gateway/gateway.rs b/src/gateway/gateway.rs index 55552b8..d10dbfb 100644 --- a/src/gateway/gateway.rs +++ b/src/gateway/gateway.rs @@ -74,14 +74,9 @@ impl Gateway { }; // Now we can continuously check for messages in a different task, since we aren't going to receive another hello - #[cfg(not(target_arch = "wasm32"))] task::spawn(async move { gateway.gateway_listen_task().await; }); - #[cfg(target_arch = "wasm32")] - task::spawn_local(async move { - gateway.gateway_listen_task().await; - }); Ok(GatewayHandle { url: websocket_url.clone(),