wst

Crates.iowst
lib.rswst
version0.2.0
sourcesrc
created_at2017-11-12 12:51:19.896864
updated_at2017-11-19 23:41:50.860463
descriptiona tool for working with websockets
homepage
repositoryhttps://github.com/wridgers/wst
max_upload_size
id39118
size10,152
Will Ridgers (wridgers)

documentation

README

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

Commit count: 12

cargo fmt