OptionsOn wscat itself
-c--connect
Connect to a WebSocket server <url>
-V--version
Output the version number
--auth
Add basic HTTP authentication header (--connect only) <username:password>
--ca
Specify a Certificate Authority (--connect only) <ca>
--cert
Specify a Client SSL Certificate (--connect only) <cert>
--host
Optional host <host>
--key
Specify a Client SSL Certificate's key (--connect only) <key>
--max-redirects
Maximum number of redirects allowed (--connect only) (default: 10) <num>
--no-color
Run without color
--passphrase
Specify a Client SSL Certificate Key's passphrase (--connect only). If you don't provide a value, it will be prompted for <passphrase>
--proxy
Connect via a proxy. Proxy must support CONNECT method <[protocol://]host[:port]>
--slash
Enable slash commands for control frames (/ping, /pong, /close [code [, reason]])
-H--header
Set an HTTP header. Repeat to set multiple (--connect only) (default: []) <header:value>
-L--location
Follow redirects (--connect only)
-l--listen
Listen on port <port>
-n--no-check
Do not check for unauthorized certificates
-o--origin
Optional origin <origin>
-p--protocol
Optional protocol version <protocol>
-P--show-ping-pong
Print a notification when a ping or pong is received
-s--subprotocol
Optional subprotocol (default: []) <protocol>
-w--wait
Wait given seconds after executing command <seconds>
-x--execute
Execute command after connecting <command>
-h--help
Display help for command