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

Initial connection is very slow in React Native #1256

Closed
saeho opened this issue Dec 31, 2018 · 6 comments
Closed

Initial connection is very slow in React Native #1256

saeho opened this issue Dec 31, 2018 · 6 comments

Comments

@saeho
Copy link

saeho commented Dec 31, 2018

I noticed that in production environment, the react native app takes very long time to connect to socket.io upon opening the app first time. Afterwards, the connection seems "better".

Is this something anyone else has noticed?

@saeho saeho closed this as completed Dec 31, 2018
@darrachequesne
Copy link
Member

@saeho did you find a solution?

@saeho
Copy link
Author

saeho commented Jan 2, 2019

No, but after a lot of research, I learnt that it wasn't socket.io. It's most likely an Android + production only issue. Seems to happen only in old devices, and it seems Javascript code is somehow locking up the app despite nothing heavy going on.

I'm still searching for the fix.

@doougui
Copy link

doougui commented Jan 17, 2020

Did you find a solution? I'm having the same issue.

@saeho
Copy link
Author

saeho commented Jan 17, 2020

Yeah, there could be a lot of reasons though. So it's too hard to pinpoint to anything.

For me, my app has grown in complexity over time and I just didn't do a good job noticing bad code (on my part). Once I used best practices and used socket.io as flawlessly as I can, everything became fine.

@doougui
Copy link

doougui commented Jan 17, 2020

I solved the issue. Thank you for answering.

@TwinsOd
Copy link

TwinsOd commented May 5, 2020

How did you solve the issue?

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

4 participants