diff --git a/Cargo.toml b/Cargo.toml index b09926d..433ca85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,7 +54,6 @@ sqlx = { version = "0.7.1", features = [ ], optional = true } safina-timer = "0.1.11" rand = "0.8.5" -ws_stream_wasm = "0.7.4" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] rustls = "0.21.8" @@ -69,6 +68,7 @@ hostname = "0.3.1" [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.2.11", features = ["js"] } tokio-tungstenite = { version = "0.20.1", default-features = false } +ws_stream_wasm = "0.7.4" [dev-dependencies] lazy_static = "1.4.0" diff --git a/src/gateway/wasm/gateway.rs b/src/gateway/wasm/gateway.rs index 5a54efb..560d58f 100644 --- a/src/gateway/wasm/gateway.rs +++ b/src/gateway/wasm/gateway.rs @@ -1 +1,6 @@ +pub use super::*; use ws_stream_wasm::*; +#[derive(Debug)] +pub struct WasmGateway { + events: Arc>, +}