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
Can I use this in a React Native app? #201
Comments
Unlikely, it uses native Node.js TCP. And more importantly, if you don't have production code using nats-streaming, you should instead be using jetstream. JetStream is built into the currently supported javascript clients. For WebSockets, see: https://github.com/nats-io/nats.ws |
@saikarthikp9 thanks to the Mehrdad, now there is a repository that includes a working example in react native here |
@saikarthikp9 You shouldn't be using stan.js (use jetstream instead) |
@aricart i need to comunicate with nats, not jetstream, i do not need persistence but only pub sub. |
stan.js is a client for old For both Core NATS (pub/sub request/reply) and JetStream, use The example you linked also uses nats.ws, not stan.js |
@Jarema sure, we are using the same package of "nats.ws" as you said. it does not work on react native. it needs following polyfills to work, so it makes developers confused. |
@bahmanbs we don't have a "native" react native transport. However if you follow the last comment on nats-io/nats.ws#195 you should be able to get started with it |
No description provided.
The text was updated successfully, but these errors were encountered: