Revert "Spawn local gateway task on wasm32"
This reverts commit 325c3d324b
.
This commit is contained in:
parent
0ff02447fc
commit
1ad93e2c01
|
@ -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
|
// 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 {
|
task::spawn(async move {
|
||||||
gateway.gateway_listen_task().await;
|
gateway.gateway_listen_task().await;
|
||||||
});
|
});
|
||||||
#[cfg(target_arch = "wasm32")]
|
|
||||||
task::spawn_local(async move {
|
|
||||||
gateway.gateway_listen_task().await;
|
|
||||||
});
|
|
||||||
|
|
||||||
Ok(GatewayHandle {
|
Ok(GatewayHandle {
|
||||||
url: websocket_url.clone(),
|
url: websocket_url.clone(),
|
||||||
|
|
Loading…
Reference in New Issue