#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

#24 in WebSocket

Download history 2656/week @ 2024-09-21 3513/week @ 2024-09-28 2643/week @ 2024-10-05 2833/week @ 2024-10-12 3040/week @ 2024-10-19 3421/week @ 2024-10-26 4301/week @ 2024-11-02 3330/week @ 2024-11-09 3343/week @ 2024-11-16 3966/week @ 2024-11-23 4526/week @ 2024-11-30 4512/week @ 2024-12-07 4106/week @ 2024-12-14 1544/week @ 2024-12-21 2371/week @ 2024-12-28 2611/week @ 2025-01-04

11,331 downloads per month
Used in 37 crates (7 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
~249K SLoC