-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explicit Disconnect causes reconnect #196
Comments
Thanks for the report, appears to be a dupe of #128 so it should be fixed but I will investigate. In the meantime you can work around this by setting your own flag (e.g. shouldReconnect) before calling disconnect and if this is set to NO, returning NO from |
Looking at the code, it will bypass automatic reconnection behaviour if you call Looks like I can add a further check in there so it doesn't do any error code handling at all if disconnect was called explicitly. |
Oh, I did really some research but didn't see #128, sorry for this. And I didn't know about BTW: Can you give some hints how to handle application transition with your library? Something like best practises? For example, I want automatic reconnects on Thank you for your great library and support, I really like working with it. |
Same thing happening to me. I've been tracking back the issue and I found out the problem comes from the SocketRocket disconnection. After
So, I guess the error comes from the way Pusher closes the socket, or maybe it's a SocketRocket bug. There's a related issue opened in their repo. What do you think, @lukeredpath? |
Any updates on this issue? Or any work arounds? Causing major problems with logout in our app. Edit: Oops, saw the workaround, must have an issue on my end. |
The best workaround is still to build your own flag for this and implement
[image: Inline-Bild 1][image: Inline-Bild 2] 2016-01-07 22:49 GMT+01:00 kkendall33 [email protected]:
Beste Grüße von der byte.it http://lets-byte.it/! Jan Gallerbyte.it http://lets-byte.it/ [Kees Galler] GbR |
Thanks! Working well for me. I read the rest of the thread with the work around after I posted my comment. |
No problem, we had all the same problem and well… the cause isn't in this I didn't know about this delegate method too until someone told about in On Thursday, 7 January 2016, kkendall33 [email protected] wrote:
Beste Grüße von der byte.it http://lets-byte.it/! Jan Gallerbyte.it http://lets-byte.it/ [Kees Galler] GbR |
Fixes pusher#196 - Explicit Disconnect causes reconnect (Following changes in SocketRocket facebookincubator/SocketRocket@818cec9)
This should have been fixed in facebookincubator/SocketRocket#300 We are soon to release a new version using SocketRocket 0.5.1 |
I checked with SocketRocket 0.5.1 and the problem still occurred. |
How frustrating! Let's reopen for now then. |
Hey guys!
I wanted to implement some preferences to choose the apps that should be connected. By unchecking an app, the disconnection should happen. So I call the
-(void) disconnect();
-method, but the library throws an error via the delegate, that indicates a reconnect. And after thereconnectDelay
, the client is being connected again. (iOS9)That's not what you write into the header file, there you state, this would not happen. Maybe I use your library wrong?
I want an explicit disconnect without any reconnects.
(Calling my
-(void) disconnect();
causes the delegate method in line 115 to be fired withwillAttemptReconnect
= YES)Maybe you have an idea?
The text was updated successfully, but these errors were encountered: