#websocket #websockets #server

app wst

a tool for working with websockets

4 releases

Uses old Rust 2015

0.2.0 Nov 19, 2017
0.1.2 Nov 18, 2017
0.1.1 Nov 12, 2017
0.1.0 Nov 12, 2017

#83 in WebSocket

Download history 4/week @ 2022-03-09 12/week @ 2022-03-16 13/week @ 2022-03-23 12/week @ 2022-04-27 32/week @ 2022-05-04 60/week @ 2022-05-11 18/week @ 2022-05-18 16/week @ 2022-05-25 33/week @ 2022-06-01 16/week @ 2022-06-08 7/week @ 2022-06-22

56 downloads per month

MIT license

9KB
218 lines

WebSocket Tool

A utility for working with websockets.

Crates.io license

Install

cargo install wst

Usage

wst can act as both a client and a server.

$ wst
Usage: wst MODE

Modes:
  server HOST PORT  - a server that broadcasts stdin to connected clients
  client URL        - a client that prints messages to stdout (default)

As a server wst will transmit lines received on stdin to connected clients.

( while :; do date && sleep 1; done) | wst server localhost 1234

As a client wst will print received messages as a line to stdout. The client mode argument is optional.

wst client ws://localhost:1234
wst ws://host:port

Licence

MIT

Dependencies

~3.5MB
~96K SLoC