wsbroad

Crates.iowsbroad
lib.rswsbroad
version0.3.0
sourcesrc
created_at2017-11-15 11:45:34.012026
updated_at2023-08-02 01:18:49.101467
descriptionWebsocket server that broadcasts each message to other clients connected to the same URL
homepage
repositoryhttps://github.com/vi/wsbroad
max_upload_size
id39431
size43,470
Vitaly Shukela (vi)

documentation

README

wsbroad

Simple websocket broadcaster implemented in Rust

Each WebSocket message sent to a particular URL on this websocket server gets delivered to all other WebSocket clients connected to the same URL. By default allows up to 64 URLs. If client is reading incoming messages too slowly, they are getting dropped for this client; no backpressure and no accumulation of messages in memory.

$ wsbroad 127.0.0.1:9002
+ 127.0.0.1:57208 -> /baz
New URL: /123
+ 127.0.0.1:57209 -> /baz
+ 127.0.0.1:57211 -> /baz
- 127.0.0.1:57208 -> /baz
- 127.0.0.1:57211 -> /baz
- 127.0.0.1:57209 -> /baz
Expiring URL: /baz

For wss:// server use some Nginx forwarding.

See Github releases for pre-built versions.

See also

Commit count: 40

cargo fmt