diff --git a/lib/websocket.js b/lib/websocket.js index 20cfafd..923c596 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -28,7 +28,7 @@ var WebsocketObject = function() { } else { var arch = SYS.getArch(); - if (this.isSSL) { + if (!this.isSSL) { if(arch.indexOf("64") > -1) { this.binPath = "bin\\websocat_nossl_win64"; } else { @@ -46,11 +46,11 @@ var WebsocketObject = function() { this.send = function(uri, msg) { var FN = "stdin.txt"; - + try { FILE.writeFile(FN, msg); - return SHELL.exec([ + return SHELL.run([ this.binPath, "-n1", "-t",