socketio-next
A Socket.IO v4 client for Rust that behaves like socket.io-client 4.8.
Namespaces, auth, acks in both directions, binary data anywhere in the arguments, the same reconnection backoff, connection state recovery, polling and websocket transports, proxies, TLS through rustls or native-tls. Async (tokio) with an optional blocking API, and a Tauri 2 plugin.
Documentation: s00d.github.io/rust-socketio · API reference: docs.rs/socketio-next
Install
[]
= "0.1"
= { = "1", = ["macros", "rt-multi-thread"] }
Cargo features: rustls (default), native-tls, platform-verifier, cookies, blocking
(details).
use Duration;
use json;
use ;
async
Tauri
tauri-plugin-socketio (npm
tauri-plugin-socketio-api) shares
named clients between Rust and the webviews of a Tauri 2 app.
# src-tauri/Cargo.toml
= "0.1"
See the plugin guide.
Coming from rust_socketio
socketio-next started as a fork of rust_socketio 0.6 and rewrote its client. See the migration guide.
Support
If socketio-next helps you, you can support it via DonationAlerts. Bugs and ideas: issues.
License
MIT, see LICENSE. Based on rust_socketio by Bastian Kersting and the rust-socketio contributors.