#cross-platform #wasm #tokio

tokio-tungstenite-wasm

A wrapper around websys and tokio-tungstenite that makes it easy to use websockets cross-platform

13 releases (7 breaking)

0.8.2 Feb 15, 2026
0.8.0 Dec 22, 2025
0.7.0 Nov 5, 2025
0.6.0 May 3, 2025
0.1.0 Jan 9, 2022

#15 in WebSocket

Download history 3347/week @ 2025-11-11 3293/week @ 2025-11-18 2885/week @ 2025-11-25 2624/week @ 2025-12-02 2583/week @ 2025-12-09 2143/week @ 2025-12-16 1317/week @ 2025-12-23 1434/week @ 2025-12-30 1899/week @ 2026-01-06 6867/week @ 2026-01-13 8434/week @ 2026-01-20 10431/week @ 2026-01-27 7291/week @ 2026-02-03 14042/week @ 2026-02-10 10586/week @ 2026-02-17 14080/week @ 2026-02-24

48,242 downloads per month
Used in 71 crates (12 directly)

Custom license

60KB
1K SLoC

tokio-tungstenite-wasm

A wrapper around websys and tokio-tungstenite that makes it easy to use websockets cross-platform.

Features

As with tungstenite-rs TLS is supported on all platforms using native-tls or rustls through feature flags: native-tls, rustls-tls-native-roots or rustls-tls-webpki-roots feature flags. Neither is enabled by default. See the Cargo.toml for more information. If you require support for secure WebSockets (wss://) enable one of them.

These are, at time of writing, at parity with tokio-tungstenite.

Dependencies

~1–20MB
~268K SLoC