#cross-platform #rustls #wasm #web-sys #cargo-toml #tokio

tokio-tungstenite-wasm

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

7 releases (4 breaking)

0.5.0 Feb 3, 2025
0.4.0 Dec 14, 2024
0.3.1 Mar 21, 2024
0.3.0 Feb 22, 2024
0.1.0 Jan 9, 2022

#20 in WebSocket

Download history 3753/week @ 2024-10-28 3945/week @ 2024-11-04 3328/week @ 2024-11-11 3461/week @ 2024-11-18 3987/week @ 2024-11-25 4672/week @ 2024-12-02 4506/week @ 2024-12-09 3998/week @ 2024-12-16 1321/week @ 2024-12-23 2582/week @ 2024-12-30 2523/week @ 2025-01-06 3548/week @ 2025-01-13 3046/week @ 2025-01-20 3090/week @ 2025-01-27 3986/week @ 2025-02-03 4496/week @ 2025-02-10

14,833 downloads per month
Used in 43 crates (8 directly)

Custom license

55KB
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–16MB
~250K SLoC