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

Doesn't Node DDP work? #1

Open
fardeem opened this issue Apr 12, 2015 · 5 comments
Open

Doesn't Node DDP work? #1

fardeem opened this issue Apr 12, 2015 · 5 comments

Comments

@fardeem
Copy link

fardeem commented Apr 12, 2015

First of work, nice work.

Second, I was wondering if I could use the Node DDP client since react native allows npm modules. Is there are a problem using the Node client or is ObjectiveDDP a personal choice?

@hharnisc
Copy link
Owner

Thanks @fardeemmunir! Was fun putting this together.

Is there are a problem using the Node client or is ObjectiveDDP a personal choice?

Websockets aren't available in React Native JS runtime (yet)

However, there's been some great progress made to get the websocket Polyfill so it can be used directly. Once that's in place it will be pretty simple to get something like Node DDP working. I'd actually prefer Node DDP or Asteroid since they are more commonly used and are entirely JS.

@hharnisc
Copy link
Owner

I'll spin up a new repo once the Polyfill is ready with a similar project. It will be interesting to see if there are any performance differences, and I'm anticipating less code.

@fardeem
Copy link
Author

fardeem commented Apr 16, 2015

Would you recommend using react native and meteor using your approach right now for a production app?

@hharnisc
Copy link
Owner

It's a decent solution, but I would recommend waiting. I've generated a PR for the Websocket Polyfill for React Native today - facebook/react-native#890

@hharnisc
Copy link
Owner

Hey @fardeemmunir I've got a working example using the WebSocket polyfill which has parity with this project. https://github.com/hharnisc/react-native-meteor-websocket-polyfill

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