Expand description
WebSocket transport backend for mesh networking (K6).
Uses tokio-tungstenite for node-to-node communication. This enables browser-based nodes (via wasm-bindgen) and traversal of HTTP proxies that block raw TCP.
Structsยง
- WsClient
Stream - A
MeshStreambacked by a client-side WebSocket connection (created viatokio_tungstenite::connect_async). - WsMesh
Stream - A
MeshStreambacked by a server-side WebSocket connection (accepted from aTcpListener). - WsTransport
- WebSocket mesh transport.
- WsTransport
Listener - A
TransportListenerthat accepts TCP connections and upgrades them to WebSocket.