-
Notifications
You must be signed in to change notification settings - Fork 103
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
Warning about timers on React Native #164
Comments
@alexsegura hello, could you explain what should be addressed here by |
Hi @FZambia sorry for the poorly detailed issue 😔 I haven't read |
I think it's there no? centrifuge-js/src/centrifuge.js Lines 1208 to 1211 in 7b70bf2
|
What do you mean by setting Looking at screenshot you provided your tokens expire In one hour. In this case centrifuge-js sets timer for one hour to refresh token after that. Do you have any specific fix for React Native warning in mind? Also, did you experience any problems with client behavior? |
In general, as your application goes to background you should not keep connection active. This is a common thing on mobile devices since they do not guarantee connection stability while app in background. So token refresh timer should be cleaned up upon disconnecting and going to background. I never worked with React Native personally though, correct me if I am missing sth. |
Related to facebook/react-native#12981
The text was updated successfully, but these errors were encountered: