diff --git a/src/gateway/mod.rs b/src/gateway/mod.rs index 470c3e5..28e49a8 100644 --- a/src/gateway/mod.rs +++ b/src/gateway/mod.rs @@ -659,6 +659,7 @@ pub trait HeartbeatHandlerCapable fn get_send(&self) -> &Sender; fn get_heartbeat_interval(&self) -> Duration; #[allow(clippy::new_ret_no_self)] + // TODO: new() has duplicated code in wasm and default impl. Can be fixed, if this is not a trait fn new( heartbeat_interval: Duration, websocket_tx: Arc>>,