Comparing version 2.2.1 to 3.0.0
{ | ||
"name": "wscat", | ||
"version": "2.2.1", | ||
"version": "3.0.0", | ||
"description": "WebSocket cat", | ||
@@ -21,5 +21,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"commander": "~2.15.0", | ||
"read": "~1.0.7", | ||
"ws": "~5.2.0" | ||
"commander": "^3.0.2", | ||
"https-proxy-agent": "^3.0.0", | ||
"read": "^1.0.7", | ||
"ws": "^7.1.2" | ||
}, | ||
@@ -26,0 +27,0 @@ "bin": { |
@@ -16,4 +16,32 @@ # wscat | ||
``` | ||
$ wscat -c ws://echo.websocket.org | ||
connected (press CTRL+C to quit) | ||
Usage: wscat [options] (--listen <port> | --connect <url>) | ||
Options: | ||
-V, --version output the version number | ||
-l, --listen <port> listen on port | ||
-c, --connect <url> connect to a WebSocket server | ||
-p, --protocol <version> optional protocol version | ||
-o, --origin <origin> optional origin | ||
-x, --execute <command> execute command after connecting | ||
-w, --wait <seconds> wait given seconds after executing command | ||
--host <host> optional host | ||
-s, --subprotocol <protocol> optional subprotocol (default: []) | ||
-n, --no-check do not check for unauthorized certificates | ||
-H, --header <header:value> set an HTTP header. Repeat to set multiple (--connect only) (default: []) | ||
--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) | ||
--key <key> specify a Client SSL Certificate's key (--connect only) | ||
--passphrase [passphrase] specify a Client SSL Certificate Key's passphrase (--connect only). If you don't provide a value, it will be prompted for | ||
--no-color run without color | ||
--slash enable slash commands for control frames (/ping, /pong, /close [code [, reason]]) | ||
--proxy <[protocol://]host[:port]> connect via a proxy. Proxy must support CONNECT method | ||
-h, --help output usage information | ||
``` | ||
## Example | ||
``` | ||
$ wscat -c ws://echo.websocket.org | ||
Connected (press CTRL+C to quit) | ||
> hi there | ||
@@ -20,0 +48,0 @@ < hi there |
Sorry, the diff of this file is not supported yet
13305
55
4
+ Addedhttps-proxy-agent@^3.0.0
+ Addedagent-base@4.3.0(transitive)
+ Addedcommander@3.0.2(transitive)
+ Addeddebug@3.2.7(transitive)
+ Addedes6-promise@4.2.8(transitive)
+ Addedes6-promisify@5.0.0(transitive)
+ Addedhttps-proxy-agent@3.0.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addedws@7.5.10(transitive)
- Removedasync-limiter@1.0.1(transitive)
- Removedcommander@2.15.1(transitive)
- Removedws@5.2.4(transitive)
Updatedcommander@^3.0.2
Updatedread@^1.0.7
Updatedws@^7.1.2