mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
ws protocol: make tungstenite integration optional feature
This commit is contained in:
parent
fee465d205
commit
3c906f48ee
4 changed files with 9 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ pub enum InMessage {
|
|||
ScrapeRequest(ScrapeRequest),
|
||||
}
|
||||
|
||||
#[cfg(feature = "tungstenite")]
|
||||
impl InMessage {
|
||||
#[inline]
|
||||
pub fn to_ws_message(&self) -> ::tungstenite::Message {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue