#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

5 unstable releases

new 0.3.1 Mar 21, 2024
0.3.0 Feb 22, 2024
0.2.1 Oct 16, 2023
0.2.0 Oct 7, 2023
0.1.0 Jan 9, 2022

#43 in WebSocket

Download history 91/week @ 2023-11-29 69/week @ 2023-12-06 91/week @ 2023-12-13 96/week @ 2023-12-20 54/week @ 2023-12-27 77/week @ 2024-01-03 108/week @ 2024-01-10 99/week @ 2024-01-17 75/week @ 2024-01-24 88/week @ 2024-01-31 150/week @ 2024-02-07 151/week @ 2024-02-14 299/week @ 2024-02-21 444/week @ 2024-02-28 907/week @ 2024-03-06 1201/week @ 2024-03-13

2,897 downloads per month
Used in 3 crates (via ezsockets)

Custom license

50KB
943 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

~2–16MB
~213K SLoC