Added polling stop if websocket is up in updater.js

added hash for websocket in websocket.rb
added check for websocket existence in command.rb and net.js
added a POC onmessage function in websocket.js
added check for websocket support in init.js
added a POC send to send command output to server in beef.js
This commit is contained in:
Graziano Felline
2012-04-11 20:52:47 +02:00
parent 302512e172
commit af9b3c97b5
8 changed files with 57 additions and 15 deletions

View File

@@ -57,6 +57,8 @@ beef.updater = {
this.get_commands(); /*Polling*/
}
}
/*@Todo Simple ceck to stop polling */
if (beef.websocket.socket == null)
setTimeout("beef.updater.check();", beef.updater.timeout);
},