wscat
Communicate over websocket
Options
Name | Description |
---|---|
-c, --connect <url> | Connect to a WebSocket server |
-V, --version | Output 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-color | Run 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 |
--slash | Enable 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, --location | Follow redirects (--connect only) |
-l, --listen <port> | Listen on port |
-n, --no-check | Do not check for unauthorized certificates |
-o, --origin <origin> | Optional origin |
-p, --protocol <protocol> | Optional protocol version |
-P, --show-ping-pong | Print 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, --help | Display help for command |