#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

6 releases (3 breaking)

0.4.0 Dec 14, 2024
0.3.1 Mar 21, 2024
0.3.0 Feb 22, 2024
0.2.1 Oct 16, 2023
0.1.0 Jan 9, 2022

#25 in WebSocket

Download history 2935/week @ 2024-09-24 3638/week @ 2024-10-01 2401/week @ 2024-10-08 2868/week @ 2024-10-15 3097/week @ 2024-10-22 4083/week @ 2024-10-29 3291/week @ 2024-11-05 3765/week @ 2024-11-12 3569/week @ 2024-11-19 4252/week @ 2024-11-26 4240/week @ 2024-12-03 4910/week @ 2024-12-10 3202/week @ 2024-12-17 1169/week @ 2024-12-24 2691/week @ 2024-12-31 2288/week @ 2025-01-07

10,410 downloads per month
Used in 39 crates (8 directly)

Custom license

53KB
973 lines

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
~250K SLoC