You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use react-native-use-websocket in a RN 0.66.3. I know that you can there use the Websocket but for some reason it was failing all the time and this lib didn't.
The WS that I need to connect to responds with a buffer, it's basically streaming images so they can be used to mimic a video.
The challenge I have now is that when I set up a WS and log the onMessage I get back a JSON response, something like this
onMessage = {"data": [], "isTrusted": false}
But when I use a simple Node script when I use the ws lib and log the result I see the buffer being printed. Is there some reason why this isn't working in the same way? Do I need to configure something else?
Thanks in advance
The text was updated successfully, but these errors were encountered:
Hmm, for some reason I can't seem to change the binaryType to blob which might fix my issue. The docs mention how to change that, but that doesn't work.
First of all thanks for this great lib!
I'm trying to use
react-native-use-websocket
in a RN0.66.3
. I know that you can there use theWebsocket
but for some reason it was failing all the time and this lib didn't.The WS that I need to connect to responds with a buffer, it's basically streaming images so they can be used to mimic a video.
The challenge I have now is that when I set up a WS and log the
onMessage
I get back a JSON response, something like thisBut when I use a simple Node script when I use the
ws
lib and log the result I see the buffer being printed. Is there some reason why this isn't working in the same way? Do I need to configure something else?Thanks in advance
The text was updated successfully, but these errors were encountered: