https://github.com/bourgeoisbear/wscli
command line interface to websockets for scriptable testing & integration
https://github.com/bourgeoisbear/wscli
go golang gorilla-websocket websocket websocket-cli websocket-client
Last synced: 11 months ago
JSON representation
command line interface to websockets for scriptable testing & integration
- Host: GitHub
- URL: https://github.com/bourgeoisbear/wscli
- Owner: BourgeoisBear
- License: mit
- Created: 2022-10-27T22:51:24.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-12-14T16:28:02.000Z (about 1 year ago)
- Last Synced: 2025-01-12T05:27:30.610Z (about 1 year ago)
- Topics: go, golang, gorilla-websocket, websocket, websocket-cli, websocket-client
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wscli
command line interface to websockets for scriptable testing & integration

## Installation
```
go install -v github.com/BourgeoisBear/wscli
```
## Commands
```
Connect to Websocket
\dial ws://127.0.0.1:8080/ws
Disconnect from Websocket
\hup
Send Message (heredoc format)
\msg [message terminator]
message line 1
message line 2
message line 3
[message terminator]
(default terminator is a blank line if left unspecified)
Specify HTTP Headers
Authorization: awo875pu84uj6paj436up
Content-Type: application/json
List Specified HTTP Headers
\hdrlst
Clear Specific HTTP Header (key without value)
Authorization:
Clear All Specified HTTP Headers
\hdrclr
```