Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
pcfriend2010 #1
Member since Feb 2012 · 7 posts
Group memberships: Members
Show profile · Link to this post
Subject: How to know MyConnection is Open
I am using BOSHConnection with Openfire.
I want to know my clinet is stat .
objXmpp.ClientSocket.Connected is always false.
When my client disconnected I want to reconnect.

BoshClientScoket can't use connected property?

what i want to do is my client always connected 24 hours.
Avatar
Alex #2
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you can either use the XmppConnectionState or have your own boolean value in a wrapper which is set to true after the OnLogin event and to false on the OnClose/OnError events.

Alex
Avatar
pcfriend2010 #3
Member since Feb 2012 · 7 posts
Group memberships: Members
Show profile · Link to this post
Subject: OnClose event fire but not always.
when client disconnected OnClose event fired.
OnClose event not always fired so my client program can't catch disconnect.
so i want to check using timer. my client disconnect but XmppConnectionState is SessionStarted.
it is bug with boshsocket?

connected property always false using boshsocket.

.
Avatar
Alex #4
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Are you using the latest codes from SVN? The OnClose event must always fire.

Alex
Avatar
pcfriend2010 #5
Member since Feb 2012 · 7 posts
Group memberships: Members
Show profile · Link to this post
Subject: i think yes but what do i check?
I updated today SVN but there are no updated.
I think i have lastet codes.
Avatar
Alex #6
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Then please write a test case which helps us to cause your problem. OnClose always fires for us, and no user reported such a problem yet.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS