mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 05:31:03 +00:00
Update websocket.js
This commit is contained in:
parent
9f3fe327d6
commit
59cfb65494
|
@ -28,7 +28,7 @@ var WebsocketObject = function() {
|
||||||
} else {
|
} else {
|
||||||
var arch = SYS.getArch();
|
var arch = SYS.getArch();
|
||||||
|
|
||||||
if (this.isSSL) {
|
if (!this.isSSL) {
|
||||||
if(arch.indexOf("64") > -1) {
|
if(arch.indexOf("64") > -1) {
|
||||||
this.binPath = "bin\\websocat_nossl_win64";
|
this.binPath = "bin\\websocat_nossl_win64";
|
||||||
} else {
|
} else {
|
||||||
|
@ -46,11 +46,11 @@ var WebsocketObject = function() {
|
||||||
|
|
||||||
this.send = function(uri, msg) {
|
this.send = function(uri, msg) {
|
||||||
var FN = "stdin.txt";
|
var FN = "stdin.txt";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
FILE.writeFile(FN, msg);
|
FILE.writeFile(FN, msg);
|
||||||
|
|
||||||
return SHELL.exec([
|
return SHELL.run([
|
||||||
this.binPath,
|
this.binPath,
|
||||||
"-n1",
|
"-n1",
|
||||||
"-t",
|
"-t",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user