状态
This commit is contained in:
@@ -37,6 +37,7 @@ function IMService() {
|
||||
host:'hangzhou.goeasy.io',//qos=1
|
||||
appkey:'BC-453aa755c4ea48148abefc55a86df283'
|
||||
});
|
||||
this.status = false
|
||||
//当前“我”
|
||||
this.currentUser = null;
|
||||
//我的好友
|
||||
@@ -236,10 +237,12 @@ IMService.prototype.connectIM = function () {
|
||||
IMService.prototype.initialIMListeners = function () {
|
||||
this.im.on(GoEasyIM.EVENT.CONNECTED, () => {
|
||||
console.log('连接成功.')
|
||||
this.status = true
|
||||
});
|
||||
|
||||
this.im.on(GoEasyIM.EVENT.DISCONNECTED, () => {
|
||||
console.log('连接断开.')
|
||||
this.status = false
|
||||
});
|
||||
|
||||
//监听好友上下线
|
||||
|
||||
Reference in New Issue
Block a user