WebSocket crate (client and server) providing an async Rust API
that functions uniformly in native and in browser (WASM32)
environments. This crate allows you to develop WebSocket-driven
data exchange that function uniformly in web and desktop applications.
usesuper::Handshake;usestd::sync::Arc;#[derive(Default)]pubstructOptions{// placeholder for future settings
// TODO review if it makes sense to impl `reconnect_interval`
pubreceiver_channel_cap:Option<usize>,
pubsender_channel_cap:Option<usize>,
pubhandshake:Option<Arc<dyn Handshake>>,
}