#websocket #websockets #rfc6455 #broadcast #nightly

app wsbroad

Websocket server that broadcasts each message to other clients connected to the same URL

4 releases

0.2.2 Sep 27, 2022
0.2.1 Dec 28, 2020
0.2.0 Dec 28, 2020
0.1.0 Nov 15, 2017

#62 in WebSocket


119 lines


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
+ -> /baz
New URL: /123
+ -> /baz
+ -> /baz
- -> /baz
- -> /baz
- -> /baz
Expiring URL: /baz

For wss:// server use some Nginx forwarding.

See Github releases for pre-built versions.


~235K SLoC