|
@@ -12,7 +12,7 @@ export default {
|
|
let that = this;
|
|
let that = this;
|
|
if ("WebSocket" in window) {
|
|
if ("WebSocket" in window) {
|
|
console.log("您的浏览器支持 WebSocket!");
|
|
console.log("您的浏览器支持 WebSocket!");
|
|
- that.ws = new WebSocket(`ws:http://132.232.92.186:9001/api/chatHub`);
|
|
+ that.ws = new WebSocket(`ws:http://132.232.92.186:8888/api/chatHub`);
|
|
that.$websocket.setWs(that.ws);
|
|
that.$websocket.setWs(that.ws);
|
|
that.ws.onopen = function() {
|
|
that.ws.onopen = function() {
|
|
console.log('开始连接')
|
|
console.log('开始连接')
|