Skip to content
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

connectionStatus is connected, but messages are not received after internet connection manipulation #163

Open
akuzminskyi opened this issue Mar 21, 2024 · 2 comments

Comments

@akuzminskyi
Copy link

akuzminskyi commented Mar 21, 2024

Hi,
I'm testing some behaviors with/without internet connection. and sometimes I'm expecting an issue when connectionStatus is connected but messages are not received which is related to connection/disconnection which I'm testing. and after calling reconnect() it starts to work again.
The last status in didReceiveStatus is also connected

Initially, I thought to check if the connection is disconnected and call reconnect() after that but it didn't cover 👆 - I think it can be an issue somewhere.

So my question: is there any consequences/side effects if reconnect() is called more frequently even if the status is connected to cover 👆?

PubNubConfguration: automaticRetry: .default
I'll try to find steps to reproduce.

@akuzminskyi akuzminskyi changed the title Reconnection connectionStatus is connected, but messages are not received after internet connection manipulation Mar 21, 2024
@jguz-pubnub
Copy link
Contributor

Hi @akuzminskyi, could you provide steps to reproduce? There are no consequences if you don't do it very frequently. The request will be repeated with the last used timetoken, so you shouldn't miss these messages that weren't delivered due to issues regarding the internet connection.

@jguz-pubnub
Copy link
Contributor

jguz-pubnub commented May 6, 2024

Also, the reason you don't get the error immediately after turning off your internet connection is because of the timeout value which is relatively large for the request we use under the hood. The question is, what happens if your internet connection is restored? Did the subscribe loop also restore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants