mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-11 20:21:03 +00:00
Update websocket.js
This commit is contained in:
parent
9f3fe327d6
commit
59cfb65494
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user