websocket command line tool
Switch branches/tags
Nothing to show
Clone or download
mattpolito Merge pull request #5 from 8tomat8/master
Added flag to skip ssl certificate validation
Latest commit bc51635 Nov 15, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Godeps Use gorilla/websocket Sep 6, 2016
vendor Use gorilla/websocket Sep 6, 2016
LICENSE Add licence and readme Aug 31, 2016
README.md Add usage recording to readme Sep 1, 2016
connection.go Added flag to skip ssl certificate validation Sep 14, 2018
main.go Added flag to skip ssl certificate validation Sep 14, 2018

README.md

ws

ws is a simple command line websocket client designed for exploring and debugging websocket servers. ws includes readline-style keyboard shortcuts, persistent history, and colorization.

Example usage recording

Installation

go get -u github.com/hashrocket/ws

Usage

Simply run ws with the destination URL. For security some sites check the origin header. ws will automatically send the destination URL as the origin. If this doesn't work you can specify it directly with the --origin parameter.

$ ws ws://localhost:3000/ws
> {"type": "echo", "payload": "Hello, world"}
< {"type":"echo","payload":"Hello, world"}
> {"type": "broadcast", "payload": "Hello, world"}
< {"type":"broadcast","payload":"Hello, world"}
< {"type":"broadcastResult","payload":"Hello, world","listenerCount":1}
> ^D
EOF