websocket
2017-09-14 本文已影响0人
左耳右耳记得忘却
var ws=new WebSocket('ws://192.168.2.11:8181');
ws.onmessage=function(e){
alert(e.data);
}
ws.send('xx');
var ws=new WebSocket('ws://192.168.2.11:8181');
ws.onmessage=function(e){
alert(e.data);
}
ws.send('xx');