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

always disconnected #1227

Closed
bamaarintoko opened this issue Aug 18, 2018 · 3 comments
Closed

always disconnected #1227

bamaarintoko opened this issue Aug 18, 2018 · 3 comments

Comments

@bamaarintoko
Copy link

cant connect server, always disconnected on react native

@davidgljay
Copy link

davidgljay commented Aug 24, 2018

Also getting this error. Upon inspection it looks like the sid isn't being defined when posting to the server. Here are logs from a successful connection with a browser and an unsuccessful connection from react-native side by side:

172.18.0.1 - - [2018-08-24 06:08:41] "POST /socket.io/?EIO=3&transport=polling&t=MLgZ95J HTTP/1.1" 400 212 0.000484
172.18.0.1 - - [2018-08-24 06:08:41] "POST /socket.io/?EIO=3&transport=polling&t=MLgZ95_&sid=6726ec57841b4dff8c461c4f94b185dd HTTP/1.1" 200 200 0.000913

I get the same behavior when transport=['websockets']
Not that sid is undefined in react native, leading to a 400 error.

@maykl4iv
Copy link

Do you guys find any solution?
I can not connect to the server. Do not have any error. Any idea how I can get some logs, or maybe connect to server?

@darrachequesne
Copy link
Member

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