ws protocol: make tungstenite integration optional feature

This commit is contained in:
Joakim Frostegård 2024-01-29 19:49:05 +01:00
parent fee465d205
commit 3c906f48ee
4 changed files with 9 additions and 1 deletions

View file

@ -23,6 +23,7 @@ pub enum OutMessage {
ErrorResponse(ErrorResponse),
}
#[cfg(feature = "tungstenite")]
impl OutMessage {
#[inline]
pub fn to_ws_message(&self) -> tungstenite::Message {