Skip to main content

Module mesh_ws

Module mesh_ws 

Source
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ยง

WsClientStream
A MeshStream backed by a client-side WebSocket connection (created via tokio_tungstenite::connect_async).
WsMeshStream
A MeshStream backed by a server-side WebSocket connection (accepted from a TcpListener).
WsTransport
WebSocket mesh transport.
WsTransportListener
A TransportListener that accepts TCP connections and upgrades them to WebSocket.