v1.1 版本发布,代码同步后端v1.1版本

This commit is contained in:
郑杰
2018-12-25 14:44:40 +08:00
parent 2722ce78c3
commit 68c60a48f1
6 changed files with 9 additions and 10 deletions

View File

@@ -72,8 +72,7 @@ export default {
},
connection(_this) {
// 建立连接对象,注意部署到线上后也要修改对应的地址
// const socket = new SockJS('http://localhost:8000/websocket?token=kl')// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息
const socket = new SockJS('http://api.auauz.net/websocket?token=kl')// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息
const socket = new SockJS('http://localhost:/websocket?token=kl')// 连接服务端提供的通信接口,连接以后才可以订阅广播消息和个人消息
// 获取STOMP子协议的客户端对象
this.stompClient = Stomp.over(socket)
// 定义客户端的认证信息,按需求配置