Update websocket.js

This commit is contained in:
Namhyeon Go 2021-06-21 04:19:34 +09:00 committed by GitHub
parent 9f3fe327d6
commit 59cfb65494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",