|
@@ -21,7 +21,7 @@ class IO {
|
|
|
// 判断是否支持 WebSocket
|
|
|
if ('WebSocket' in window) {
|
|
|
// 连接WebSocket
|
|
|
- this.ws = new WebSocket(this.url);
|
|
|
+ this.ws = new WebSocket('ws://106.14.237.165/websocket');
|
|
|
this.ws.sendEvent = this.sendEvent;
|
|
|
this.ws.connectBench = this.connectBench.bind(this.ws)
|
|
|
this.ws.getImage = this.getImage.bind(this.ws)
|