diff --git a/Cargo.toml b/Cargo.toml index 0907694..72028c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,6 +54,9 @@ sqlx = { version = "0.7.1", features = [ ], optional = true } safina-timer = "0.1.11" rand = "0.8.5" +# TODO: Remove the below 2 imports for production! +ws_stream_wasm = "0.7.4" +pharos = "0.5.3" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] rustls = "0.21.8" diff --git a/src/gateway/mod.rs b/src/gateway/mod.rs index d9dc95c..470c3e5 100644 --- a/src/gateway/mod.rs +++ b/src/gateway/mod.rs @@ -2,7 +2,8 @@ pub mod default; pub mod events; pub mod message; -#[cfg(all(target_arch = "wasm32", feature = "client"))] +// TODO: Uncomment for Prod! +// #[cfg(all(target_arch = "wasm32", feature = "client"))] pub mod wasm; #[cfg(all(not(target_arch = "wasm32"), feature = "client"))] @@ -10,7 +11,8 @@ pub use default::*; pub use message::*; use safina_timer::sleep_until; use tokio::task::JoinHandle; -#[cfg(all(target_arch = "wasm32", feature = "client"))] +// TODO: Uncomment for Prod! +// #[cfg(all(target_arch = "wasm32", feature = "client"))] pub use wasm::*; use self::events::Events; @@ -171,6 +173,7 @@ where /// Returns a Result with a matching impl of [`GatewayHandleCapable`], or a [`GatewayError`] /// /// DOCUMENTME: Explain what this method has to do to be a good get_handle() impl, or link to such documentation + /// TODO: Give spawn a default trait impl, avoid code duplication async fn spawn>(websocket_url: String) -> Result; async fn close(&mut self);