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

#37 in WebSocket

Download history 96/week @ 2024-01-18 82/week @ 2024-01-25 92/week @ 2024-02-01 163/week @ 2024-02-08 131/week @ 2024-02-15 384/week @ 2024-02-22 428/week @ 2024-02-29 924/week @ 2024-03-07 1356/week @ 2024-03-14 2261/week @ 2024-03-21 2721/week @ 2024-03-28 3283/week @ 2024-04-04 2091/week @ 2024-04-11 1901/week @ 2024-04-18 2332/week @ 2024-04-25 1197/week @ 2024-05-02

8,259 downloads per month
Used in 4 crates (2 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

~2–16MB
~210K SLoC