mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-02-16 02:20:43 +00:00
[enhance] websocket
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user