@@ -82,7 +82,7 @@ function ChatProxy(service) {
82
82
this . service = service ;
83
83
84
84
// Check the chat connection (return true/false)
85
- this . connected = false ;
85
+ this . isConnected = false ;
86
86
87
87
this . _isLogout = false ;
88
88
this . _isDisconnected = false ;
@@ -789,7 +789,7 @@ ChatProxy.prototype = {
789
789
790
790
/** connect for node */
791
791
if ( ! Utils . getEnv ( ) . browser ) {
792
- if ( self . connected ) {
792
+ if ( self . isConnected ) {
793
793
callback ( null , self . roster . contacts ) ;
794
794
return ;
795
795
}
@@ -805,7 +805,7 @@ ChatProxy.prototype = {
805
805
Utils . safeCallbackCall ( self . onReconnectListener ) ;
806
806
}
807
807
808
- self . connected = false ;
808
+ self . isConnected = false ;
809
809
} ) ;
810
810
811
811
self . Client . on ( 'online' , function ( ) {
@@ -818,7 +818,7 @@ ChatProxy.prototype = {
818
818
819
819
self . helpers . setUserCurrentJid ( self . helpers . userCurrentJid ( self . Client ) ) ;
820
820
821
- self . connected = true ;
821
+ self . isConnected = true ;
822
822
823
823
if ( typeof callback === 'function' ) {
824
824
var presence = chatUtils . createStanza ( XMPP . Stanza , null , 'presence' ) ;
@@ -864,7 +864,7 @@ ChatProxy.prototype = {
864
864
Utils . safeCallbackCall ( self . onDisconnectedListener ) ;
865
865
}
866
866
867
- self . connected = false ;
867
+ self . isConnected = false ;
868
868
self . Client . _events = { } ;
869
869
self . Client . _eventsCount = 0 ;
870
870
} ) ;
@@ -877,7 +877,7 @@ ChatProxy.prototype = {
877
877
callback ( err , null ) ;
878
878
}
879
879
880
- self . connected = false ;
880
+ self . isConnected = false ;
881
881
} ) ;
882
882
883
883
self . Client . options . jid = userJid ;
0 commit comments