We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02c3374 commit 58b9b6bCopy full SHA for 58b9b6b
bin/wscat
@@ -181,7 +181,7 @@ if (program.listen && program.connect) {
181
var cont = function () {
182
var wsConsole = new Console();
183
184
- if (program.protocol) options.protocolVersion = program.protocol;
+ if (program.protocol) options.protocolVersion = +program.protocol;
185
if (program.origin) options.origin = program.origin;
186
if (program.subprotocol) options.protocol = program.subprotocol;
187
if (program.host) options.host = program.host;
@@ -227,7 +227,7 @@ if (program.listen && program.connect) {
227
if (!ws) return;
228
229
try { ws.close(); }
230
- catch(e) {}
+ catch (e) {}
231
232
process.exit();
233
});
0 commit comments