diff --git a/src/gateway/gateway.rs b/src/gateway/gateway.rs index d10dbfb..7a3a81d 100644 --- a/src/gateway/gateway.rs +++ b/src/gateway/gateway.rs @@ -74,6 +74,7 @@ impl Gateway { }; // Now we can continuously check for messages in a different task, since we aren't going to receive another hello + // FIXME: Doesn't work in WASM task::spawn(async move { gateway.gateway_listen_task().await; }); diff --git a/src/gateway/heartbeat.rs b/src/gateway/heartbeat.rs index b8e4bec..ea8f965 100644 --- a/src/gateway/heartbeat.rs +++ b/src/gateway/heartbeat.rs @@ -33,6 +33,7 @@ impl HeartbeatHandler { let (send, receive) = tokio::sync::mpsc::channel(32); let kill_receive = kill_rc.resubscribe(); + // FIXME: Doesn't work in WASM let handle: JoinHandle<()> = task::spawn(async move { Self::heartbeat_task(websocket_tx, heartbeat_interval, receive, kill_receive).await; });