wscat

Communicate over websocket

Options

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