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

React Native? #11

Closed
Jonovono opened this issue Sep 4, 2017 · 4 comments
Closed

React Native? #11

Jonovono opened this issue Sep 4, 2017 · 4 comments
Assignees
Labels

Comments

@Jonovono
Copy link

Jonovono commented Sep 4, 2017

Could this be used in react native?

I get the following error:

"Unable to resolve module `events` from `...../node_modules/backoff/lib/backoff.js`: Module does not exist in the module map
@endel
Copy link
Member

endel commented Sep 12, 2017

This lib is a dependency from the websocket.js.

Sorry for the late reply, I'm moving countries and I'll have a look into this soon.

@endel
Copy link
Member

endel commented Sep 28, 2017

I've been investigating this and here are some notes for me to look at later.

After removing the "events" node module as a dependency, a couple of issues has been unlocked:

  • localStorage - AsyncStorage should be used instead
  • performance.now - use new Date() instead.

@endel endel self-assigned this Sep 28, 2017
@endel
Copy link
Member

endel commented Sep 30, 2017

@Jonovono this client now supports react-native! 🎉

Release: https://github.com/gamestdio/colyseus.js/releases/tag/0.7.2
More info: https://github.com/gamestdio/colyseus.js#react-native-compatibility

@endel
Copy link
Member

endel commented Sep 30, 2017

Version 0.7.2 went wrong for the browser (typescript+webpack). 0.7.3 fixed it.

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

No branches or pull requests

2 participants