#cross-platform #tokio #wasm

tokio-tungstenite-wasm

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

8 releases (5 breaking)

new 0.6.0 May 3, 2025
0.5.0 Feb 3, 2025
0.4.0 Dec 14, 2024
0.3.1 Mar 21, 2024
0.1.0 Jan 9, 2022

#20 in WebSocket

Download history 3518/week @ 2025-01-12 3120/week @ 2025-01-19 2971/week @ 2025-01-26 3959/week @ 2025-02-02 4510/week @ 2025-02-09 3831/week @ 2025-02-16 4909/week @ 2025-02-23 2943/week @ 2025-03-02 4447/week @ 2025-03-09 5167/week @ 2025-03-16 4696/week @ 2025-03-23 4790/week @ 2025-03-30 4338/week @ 2025-04-06 3146/week @ 2025-04-13 2957/week @ 2025-04-20 2883/week @ 2025-04-27

13,656 downloads per month
Used in 101 crates (9 directly)

Custom license

58KB
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–17MB
~260K SLoC