diff --git a/lib/websocket.js b/lib/websocket.js index 923c596..24ef4aa 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -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",