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

Failed to connect to the server in React Native Android #131

Open
otaradze opened this issue Aug 15, 2019 · 1 comment
Open

Failed to connect to the server in React Native Android #131

otaradze opened this issue Aug 15, 2019 · 1 comment

Comments

@otaradze
Copy link

I am trying to connect to Socket Cluster server in React Native(Android).

The connection fails with the log:

[SocketProtocolError: Socket hung up]

Here is the connect option:

{ hostname: SOCKET_HOST, port: 443, secure: true, rejectUnauthorized: false, }

@dubynam
Copy link

dubynam commented Oct 11, 2019

The same problem, we try to play with options but it didn't help.
Some devices can't connect to channel at all. (return 1005 code) especially Samsung Galaxy S6 (android 7.0)
But what is interesting we can connect simple socket server like a https://www.websocket.org/echo.html

Environment:
"react": "16.8.3",
"react-native": "0.59.9",
"socketcluster-client": "^14.3.1"

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