Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Fix socket.io error #1

Closed
thani-sh opened this issue Jun 18, 2016 · 2 comments
Closed

Fix socket.io error #1

thani-sh opened this issue Jun 18, 2016 · 2 comments

Comments

@thani-sh
Copy link
Contributor

Socket io requires a hack where we should set the window.navigator.userAgent to something. But in react-native that property is read only so it throws an error.

screen shot 2016-06-18 at 12 54 30 pm

It also throws an error if the hack is not included.

screen shot 2016-06-18 at 2 00 01 pm

Try to fix the issue or replace socket.io with something else.

@thani-sh
Copy link
Contributor Author

The fix didn't work. It might have worked when tested for some unknown reasons.

@thani-sh thani-sh reopened this Jun 18, 2016
@thani-sh
Copy link
Contributor Author

Could get it to work by using a patched socket.io until they make an official release The issue was on engine.io-parser repo and they have already merged the PR with the fix. But they still haven't done a release. Until the fix is on an official release, used this patched version.

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

No branches or pull requests

1 participant