SkillAgentSearch skills...

Ewebsock

A Rust Websocket client that compiles to both native and web

Install / Use

/learn @rerun-io/Ewebsock
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ewebsock

<img alt="github" src="https://img.shields.io/badge/github-rerun_io/ewebsock-8da0cb?logo=github" height="20"> Latest version Documentation unsafe forbidden Build Status MIT Apache

This is a simple WebSocket library for Rust which can be compiled to both native and web (WASM).

Usage

let options = ewebsock::Options::default();
// see documentation for more options
let (mut sender, receiver) = ewebsock::connect("ws://example.com", options).unwrap();
sender.send(ewebsock::WsMessage::Text("Hello!".into()));
while let Some(event) = receiver.try_recv() {
    println!("Received {:?}", event);
}

Testing

First start the example echo server with:

cargo r -p echo_server

Then test the library with:

# native mode
cargo run -p example_app

# web mode
# install trunk with `cargo install trunk` - https://trunk-rs.github.io/trunk/
(cd example_app && trunk serve)
View on GitHub
GitHub Stars285
CategoryDevelopment
Updated7d ago
Forks38

Languages

Rust

Security Score

100/100

Audited on Mar 27, 2026

No findings