mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 13:16:05 +00:00
Update websocket.js
This commit is contained in:
parent
fda2b3fdec
commit
92d23f4dff
|
@ -46,11 +46,13 @@ var WebsocketObject = function() {
|
||||||
|
|
||||||
this.send = function(uri, msg) {
|
this.send = function(uri, msg) {
|
||||||
var FN = "stdin.txt";
|
var FN = "stdin.txt";
|
||||||
|
|
||||||
try {
|
|
||||||
FILE.writeFile(FN, msg);
|
|
||||||
|
|
||||||
return SHELL.run([
|
try {
|
||||||
|
FILE.writeFile(FN, msg + "\n", "utf-8");
|
||||||
|
console.log(msg);
|
||||||
|
sleep(1);
|
||||||
|
|
||||||
|
return SHELL.exec([
|
||||||
this.binPath,
|
this.binPath,
|
||||||
"-n1",
|
"-n1",
|
||||||
"-t",
|
"-t",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user