[enhance] websocket

This commit is contained in:
YinMo19 2025-04-17 11:42:58 +08:00
parent 81b932b7bf
commit c156d2eef7
4 changed files with 261 additions and 12 deletions

View file

@ -57,8 +57,16 @@ pub use toml;
pub use uuid;
pub mod fingerprint;
pub use flexi_logger;
pub mod websocket;
#[cfg(feature = "websocket")]
pub type Stream = websocket::WsFramedStream;
#[cfg(not(feature = "websocket"))]
pub type Stream = tcp::FramedStream;
pub type SessionID = uuid::Uuid;
#[inline]