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 implementing centrifuge@^3.0.1 in a React Native (0.70, without Expo) project. The web sockets are working fine, but I would like to use the http_stream as fallback. Unfortunately it throws the following error when trying to use the http_stream transport mode. Is there some dependency missing?
ReferenceError: Can't find variable: TextDecoder
Error: ENOENT: no such file or directory, open 'FooProject/HttpStreamTransport@http:/localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true'
The text was updated successfully, but these errors were encountered:
Hello, hmm - seems that TextDecoder is undefined in React Native (what I found - hapijs/joi#2141). Probably you can just use any polyfill that defines TextDecoder on global level to fix this like shown here?
If it works, seems we should document it, or add an explicit option like we have for readableStream for example.
And it seems that in any case we need to avoid throwing an error in constructor of http stream transport.
Hi,
I'm implementing
centrifuge@^3.0.1
in a React Native (0.70, without Expo) project. The web sockets are working fine, but I would like to use thehttp_stream
as fallback. Unfortunately it throws the following error when trying to use thehttp_stream
transport mode. Is there some dependency missing?The text was updated successfully, but these errors were encountered: