#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)

new 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

#21 in WebSocket

Download history 3058/week @ 2024-10-20 3734/week @ 2024-10-27 3952/week @ 2024-11-03 3447/week @ 2024-11-10 3278/week @ 2024-11-17 3998/week @ 2024-11-24 4539/week @ 2024-12-01 4684/week @ 2024-12-08 3995/week @ 2024-12-15 1387/week @ 2024-12-22 2436/week @ 2024-12-29 2649/week @ 2025-01-05 3518/week @ 2025-01-12 3120/week @ 2025-01-19 3007/week @ 2025-01-26 3705/week @ 2025-02-02

13,554 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
~247K SLoC