roam-websocket 7.3.0

WebSocket transport for roam — message-framed Link over tungstenite
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! WebSocket transport for roam.
//!
//! Implements [`Link`](roam_types::Link) over a WebSocket connection.
//! Each roam message maps 1:1 to a WebSocket binary frame.
//!
//! - **Native**: uses `tokio-tungstenite`
//! - **WASM**: uses `web_sys::WebSocket`

#[cfg(not(target_arch = "wasm32"))]
mod native;
#[cfg(not(target_arch = "wasm32"))]
pub use native::*;

#[cfg(target_arch = "wasm32")]
mod wasm;
#[cfg(target_arch = "wasm32")]
pub use wasm::*;