Update websocket.js

This commit is contained in:
Namhyeon Go 2021-06-25 04:10:53 +09:00 committed by GitHub
parent fda2b3fdec
commit 92d23f4dff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,11 +46,13 @@ var WebsocketObject = function() {
this.send = function(uri, msg) {
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,
"-n1",
"-t",