Skip to content

Does this work for react native? #49

Answered by kaciakmaciak
Cmoen11 asked this question in Q&A

You must be logged in to vote

Hi Christian,

Thanks for reporting the issue with the browser key in the package.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 like ws://192.168.x.x:port/path rather than just using ws://localhost:port/path). It worked all good once I had a correct URL.

Replies: 2 comments 2 replies

You must be logged in to vote
0 replies

You must be logged in to vote
2 replies
@Cmoen11

@kaciakmaciak

Answer selected by Cmoen11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants