mirror of
https://github.com/GiriNeko/hbb_common.git
synced 2025-12-17 13:57:26 +00:00
[enhance] websocket
This commit is contained in:
parent
81b932b7bf
commit
c156d2eef7
4 changed files with 261 additions and 12 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue