[root@kafka kafka-logs]# wscat ws://xxx.xxx.com/bs /usr/lib/node_modules/wscat/node_modules/commander/lib/command.js:921 async parseAsync(argv, parseOptions) { ^^^ SyntaxError: Unexpected identifier at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._c...
[root@kafka kafka-logs]# wscat ws://xxx.xxx.com/bs/usr/lib/node_modules/wscat/node_modules/commander/lib/command.js:921asyncparseAsync(argv, parseOptions) {^^^SyntaxError: Unexpected identifier at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (...
-w, --wait <seconds> wait given seconds after executing command -x, --execute <command> execute command after connecting -h, --help display help for command
/usr/bin/expect set user [lindex $argv 0] //第一个参数 set host [lindex $argv 1] /...
-x, --execute<command>execute command after connecting (--connect only) -h, --help display help for command Example $wscat -c ws://websocket-echo.comConnected (press CTRL+C to quit)>hi there< hi there>are you a happy parrot?< are you a happy parrot?
Example $ wscat -c wss://websocket-echo.com Connected (press CTRL+C to quit) > hi there < hi there > are you a happy parrot? < are you a happy parrot? License Used by1k + 1,005 Contributors21 + 7 contributors
Repeat to specify more than one (default: []) -w, --wait <seconds> wait given seconds after executing command -x, --execute <command> execute command after connecting (--connect only) -h, --help display help for command Example$ wscat -c ws://websocket-echo.com Connected (press CTRL...
Repeat to specify more than one (default: []) -w, --wait <seconds> wait given seconds after executing command -x, --execute <command> execute command after connecting (--connect only) -h, --help display help for command Example $ wscat -c wss://websocket-echo.com Connected (press ...
--execute <command> execute command after connecting -w, --wait <seconds> wait given seconds after executing command -P, --show-ping-pong print a notification when a ping or pong is received --host <host> optional host -s, --subprotocol <protocol> optional subprotocol (default: []) -...
Pour vous connecter à votre API, exécutez la commandewscatcomme illustré dans l’exemple suivant. Notez que cet exemple part du principe que le paramètreAuthorizationest défini surNONE. wscat -c wss://aabbccddee.execute-api.us-east-1.amazonaws.com/test/ ...