#cross-platform #wasm #rustls #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

#17 in WebSocket

Download history 3524/week @ 2024-11-21 4644/week @ 2024-11-28 4208/week @ 2024-12-05 4912/week @ 2024-12-12 2029/week @ 2024-12-19 1216/week @ 2024-12-26 3019/week @ 2025-01-02 3462/week @ 2025-01-09 3140/week @ 2025-01-16 3034/week @ 2025-01-23 3676/week @ 2025-01-30 4140/week @ 2025-02-06 4020/week @ 2025-02-13 4544/week @ 2025-02-20 3942/week @ 2025-02-27 3701/week @ 2025-03-06

16,975 downloads per month
Used in 52 crates (10 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–17MB
~255K SLoC