backup index page

This commit is contained in:
OttoMao 2015-05-18 09:50:19 +08:00
parent cd85d66326
commit 157e478abb
2 changed files with 12 additions and 11 deletions

View File

@ -49,6 +49,7 @@ function wsServer(config){
//web socket interface //web socket interface
var wss = new WebSocketServer({port: config.port}); var wss = new WebSocketServer({port: config.port});
wss.broadcast = function(data) { wss.broadcast = function(data) {
var key = data.id;
if(typeof data == "object"){ if(typeof data == "object"){
data = JSON.stringify(data); data = JSON.stringify(data);
} }
@ -78,6 +79,7 @@ function wsServer(config){
type : "update", type : "update",
content: data content: data
}); });
}catch(e){ }catch(e){
console.log("ws error"); console.log("ws error");
console.log(e); console.log(e);

View File

@ -34,7 +34,6 @@
</div> </div>
<div style="clear:both"></div> <div style="clear:both"></div>
</div> </div>
<div class="mainTableWrapper" id="J_content"></div> <div class="mainTableWrapper" id="J_content"></div>