mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-05-10 14:58:27 +00:00
backup index page
This commit is contained in:
parent
cd85d66326
commit
157e478abb
@ -49,6 +49,7 @@ function wsServer(config){
|
||||
//web socket interface
|
||||
var wss = new WebSocketServer({port: config.port});
|
||||
wss.broadcast = function(data) {
|
||||
var key = data.id;
|
||||
if(typeof data == "object"){
|
||||
data = JSON.stringify(data);
|
||||
}
|
||||
@ -78,6 +79,7 @@ function wsServer(config){
|
||||
type : "update",
|
||||
content: data
|
||||
});
|
||||
|
||||
}catch(e){
|
||||
console.log("ws error");
|
||||
console.log(e);
|
||||
|
@ -34,7 +34,6 @@
|
||||
</div>
|
||||
|
||||
<div style="clear:both"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="mainTableWrapper" id="J_content"></div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user