Registry / networking / rust-socketio

rust-socketio

JSON →
library0.6.0rscratesunverified

An implementation of a Socket.IO client written in Rust for real-time bidirectional communication.

# Cargo.toml [dependencies] rust_socketio = "0.6.0"
INSTALL
IMPORT
SIG · RUST-SOCKETIO
R
rust-socketio
networkingrustv0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
use rust_socketio::client::Client;

Connects to a Socket.IO server and emits an event.

use rust_socketio::client::Client; use rust_socketio::payload::Payload; fn main() { let mut client = Client::new("http://localhost:3000").unwrap(); client.connect().unwrap(); client.emit("event", Payload::String("hello".to_string())).unwrap(); }
Debug
Known issues
gotchaRequires async runtime (tokio) for connection.
fix
Add `tokio` dependency and use `#[tokio::main]` or similar.
affects: >=0.6.0
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
28
Resources
rust-socketio — cargo add rust-socketio · libregistry