Does this work for react native? #49
-
Hi. I'm trying to implement this in my React Native project, and I'm getting stuck by it not finding "dist/react-query-subscription.umd.js", I saw in package.json that it had a reference to "browser": "dist/react-query-subscription.umd.js", I removed this and the issue went away... Now I'm facing
and I'm unsure if this is related or not. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi Christian, I haven't had much experience with react native but I'm definitely keen on making it work. I'll have a look over the weekend and will try to resolve the issue. |
Beta Was this translation helpful? Give feedback.
-
Hi Christian, Thanks for reporting the issue with the Regarding your question about the "Invalid Sec-WebSocket-Accept response" error. I've created a react native project using expo and installed My gut feeling is that your error "Invalid Sec-WebSocket-Accept response" is related to WebSocket connection itself rather than Let us know if have any more questions. |
Beta Was this translation helpful? Give feedback.
Hi Christian,
Thanks for reporting the issue with the
browser
key in thepackage.json
. It's been fixed now and released v1.5.1 🙏Regarding your question about the "Invalid Sec-WebSocket-Accept response" error. I've created a react native project using expo and installed
react-query-subscritpion
(alongside of its peer dependencies) and had no problems. I've created a very basic app, you can see it here https://github.com/kaciakmaciak/react-native-react-query-subscription-sandbox. I've also tried using websockets over localhost (the connection URL had to be something likews://192.168.x.x:port/path
rather than just usingws://localhost:port/path
). It worked all good once I had a correct URL.…