From 66050116cdacdff0c2424ce63b69011713880748 Mon Sep 17 00:00:00 2001 From: Totodore Date: Sun, 17 Sep 2023 16:00:25 +0200 Subject: [PATCH] fix(doc): fix doc test --- socketioxide/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/socketioxide/src/lib.rs b/socketioxide/src/lib.rs index 99647e4a..db139179 100644 --- a/socketioxide/src/lib.rs +++ b/socketioxide/src/lib.rs @@ -45,7 +45,7 @@ //! // Add a callback triggered when the socket disconnect //! // The reason of the disconnection will be passed to the callback //! socket.on_disconnect(|socket, reason| async move { -//! info!("Socket.IO disconnected: {} {}", socket.sid, reason); +//! println!("Socket.IO disconnected: {} {}", socket.sid, reason); //! }); //! }) //! .add("/custom", |socket| async move { @@ -73,7 +73,7 @@ pub use errors::{ AckError, AckSenderError, BroadcastError, Error as SocketError, SendError, TransportError, }; pub use layer::SocketIoLayer; -pub use ns::Namespace; +pub use ns::{Namespace, NsHandlers}; pub use service::SocketIoService; pub use socket::{DisconnectReason, Socket};