Skip to main content

vox_websocket/
lib.rs

1//! WebSocket transport for vox.
2//!
3//! Implements [`Link`](vox_types::Link) over a WebSocket connection.
4//! Each vox message maps 1:1 to a WebSocket binary frame.
5//!
6//! - **Native**: uses `tokio-tungstenite`
7//! - **WASM**: uses `web_sys::WebSocket`
8
9#[cfg(not(target_arch = "wasm32"))]
10mod native;
11#[cfg(not(target_arch = "wasm32"))]
12pub use native::*;
13
14#[cfg(target_arch = "wasm32")]
15mod wasm;
16#[cfg(target_arch = "wasm32")]
17pub use wasm::*;