https://github.com/corpix/wscat
Command line websocket consumer and producer, simple as hell
https://github.com/corpix/wscat
golang websocket websocket-cli
Last synced: 3 months ago
JSON representation
Command line websocket consumer and producer, simple as hell
- Host: GitHub
- URL: https://github.com/corpix/wscat
- Owner: corpix
- License: unlicense
- Created: 2018-03-12T00:43:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-09T07:18:51.000Z (over 6 years ago)
- Last Synced: 2024-06-20T12:51:57.661Z (almost 2 years ago)
- Topics: golang, websocket, websocket-cli
- Language: Nix
- Size: 16.6 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
wscat
---------
[](https://travis-ci.org/corpix/wscat)
## Usage
```console
$ ./wscat -h
NAME:
wscat - WebSocket Consumer & Producer
USAGE:
wscat [global options] command [command options] [arguments...]
VERSION:
development
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--debug add this flag to enable debug mode
--help, -h show help
--version, -v print the version
$ ./wscat wss://cryptounicorns.io/api/v1/events/stream | head -n 5
{"type":"tickers","payload":{"buy":308.85,"high":318.99,"last":307.61,"low":275.51,"market":"bitfinex","sell":307.77,"symbolPair":"ZEC-USD","tags":["mole","* * * * * *"],"timestamp":1520815645173712100,"vol":11637.10892408}}
{"type":"tickers","payload":{"buy":0.0015303,"high":0.0015553,"last":0.0015273,"low":0.0014944,"market":"bitfinex","sell":0.0015246,"symbolPair":"OMG-BTC","tags":["mole","* * * * * *"],"timestamp":1520815645301125400,"vol":72863.29011334}}
{"type":"tickers","payload":{"buy":0.00063447,"high":0.00065544,"last":0.00063443,"low":0.00063443,"market":"bitfinex","sell":0.00063404,"symbolPair":"EOS-BTC","tags":["mole","* * * * * *"],"timestamp":1520815645308929300,"vol":274006.63606891}}
{"type":"tickers","payload":{"buy":0.000175,"high":0.00018042,"last":0.00017425,"low":0.00016707,"market":"bitfinex","sell":0.0001741,"symbolPair":"SAN-BTC","tags":["mole","* * * * * *"],"timestamp":1520815645311848400,"vol":188912.06904485}}
{"type":"tickers","payload":{"buy":1.6841,"high":1.7347,"last":1.6801,"low":1.4324,"market":"bitfinex","sell":1.6801,"symbolPair":"SAN-USD","tags":["mole","* * * * * *"],"timestamp":1520815645315781000,"vol":1415995.45142326}}
```