Revert "Spawn local gateway task on wasm32"

This reverts commit 3c419e8310.
This commit is contained in:
bitfl0wer 2023-11-20 15:14:34 +01:00
parent 509733bfb8
commit 5bd4b627c5
1 changed files with 0 additions and 5 deletions

View File

@ -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(),