Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Ejdb | 1,368 | 1 | 2 | 11 days ago | 48 | October 26, 2021 | 29 | mit | C | |
:snowboarder: EJDB2 — Embeddable JSON Database engine C library. Simple XPath like query language (JQL). Websockets / Android / iOS / React Native / Flutter / Java / Dart / Node.js bindings. Docker image. | ||||||||||
Tokio Tungstenite | 1,119 | 27 | 229 | 13 days ago | 23 | July 13, 2022 | 17 | mit | Rust | |
Tokio binding for Tungstenite, the Lightweight stream-based WebSocket implementation | ||||||||||
Disgord | 466 | 7 | 21 | 21 days ago | 174 | March 25, 2022 | 48 | bsd-3-clause | Go | |
Go module for interacting with the documented Discord's bot interface; Gateway, REST requests and voice | ||||||||||
Ezyfox Server | 453 | 1 | a month ago | 14 | October 01, 2022 | apache-2.0 | Java | |||
A socket server (include SSL) supports realtime application, realtime game, MMORPG, messaging, chat and streaming data with TCP, UDP and Websocket | ||||||||||
Websocket | 97 | 6 | 3 | 3 years ago | May 27, 2021 | 6 | bsd-3-clause | JavaScript | ||
websocket provides high- and low-level bindings for the browser's WebSocket API. | ||||||||||
Kotlin Rxokhttp Websocket | 38 | 7 years ago | Kotlin | |||||||
WebSocket bindings for Kotlin and RxKotlin based on OkHttp and Gson | ||||||||||
Martini Sockets | 36 | 2 | 6 years ago | 2 | May 24, 2015 | 2 | mit | Go | ||
Websockets to channels binding for Martini | ||||||||||
Eosws Go | 34 | 2 months ago | 3 | mit | Go | |||||
Go bindings to the dfuse.io Streaming APIs. | ||||||||||
Uws | 27 | 4 years ago | zlib | C++ | ||||||
Fork of node.js bindings for uWebSockets. | ||||||||||
Purescript Websocket Simple | 26 | 12 | 4 years ago | December 02, 2016 | 4 | other | PureScript | |||
Simple Bindings to Websocket API for Purescript |
Asynchronous WebSockets for Tokio stack.
Add this in your Cargo.toml
:
[dependencies]
tokio-tungstenite = "*"
Take a look at the examples/
directory for client and server examples. You may also want to get familiar with
Tokio if you don't have any experience with it.
This crate is based on tungstenite-rs
Rust WebSocket library and provides Tokio
bindings and wrappers for it, so you
can use it with non-blocking/asynchronous TcpStream
s from and couple it together with other crates from Tokio
stack.
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.