#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

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

#31 in WebSocket

Download history 4216/week @ 2024-08-05 4243/week @ 2024-08-12 3077/week @ 2024-08-19 3130/week @ 2024-08-26 3125/week @ 2024-09-02 2718/week @ 2024-09-09 2802/week @ 2024-09-16 2609/week @ 2024-09-23 3759/week @ 2024-09-30 2473/week @ 2024-10-07 2832/week @ 2024-10-14 3089/week @ 2024-10-21 3753/week @ 2024-10-28 3945/week @ 2024-11-04 3328/week @ 2024-11-11 3461/week @ 2024-11-18

14,681 downloads per month
Used in 27 crates (4 directly)

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

~1–15MB
~215K SLoC