Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
bilalkhan #1
Member since Oct 2016 · 81 posts · Location: Pakistan
Group memberships: Members
Show profile · Link to this post
Subject: on close event call due to multiple reason
HI,

WHEN I SHUT DOWN OR STOP THE SERVER ONCLOSE EVENT OF CLIENT GET CALLED, ONCLOSE EVENT CALL DUE TO MANY REASON, I WANT TO SPECIFY IN TO IF CONDITION, IF THE SERVER HAS BEEN LOST AUTORECONNECT TO THE SERVER.

HOW CAN I DO THIS ?

 private void OnClose(object sender)
        {
           //IF THE SERVER IS DOWN THEN TRY TO RECONNECT ELSE DO NOT
             AutoReconnect();
        }
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Sorry, but I don't understand your question
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