pull/23/head
taoshihan1991 4 years ago
parent fa8c27912f
commit 6baf992be8

@ -22,6 +22,8 @@ new Vue({
this.socket.onmessage = this.OnMessage; this.socket.onmessage = this.OnMessage;
this.socket.onopen = this.OnOpen; this.socket.onopen = this.OnOpen;
this.socket.onclose = this.OnClose; this.socket.onclose = this.OnClose;
//心跳
this.ping();
}, },
OnOpen() { OnOpen() {
this.chatTitle="连接成功!" this.chatTitle="连接成功!"
@ -370,7 +372,6 @@ new Vue({
this.scrollBottom(); this.scrollBottom();
//获取欢迎 //获取欢迎
this.getNotice(); this.getNotice();
//心跳
this.ping();
} }
}) })

Loading…
Cancel
Save