Open Deep-Jani opened 4 months ago
Hi! Are you using the Android emulator? Or a real device?
Did you check our React Native guide?
Hi! @darrachequesne, thanks for responding. We have been trying this in both the real devices and emulators.
Yes, we checked react native guide from official socket.io docs.
Are you able to create a basic Socket.IO connection with the socket.io-client
package? Or does it fail too?
It connects and listens to the events of the basic Socket server implemented in Nodejs App.
When using Socket.io as a broadcaster in Laravel-echo, We are using Socketio from socket.io-client as a client for connecting to the socket ,joining into the channel and listen an event fired within the channel. While working with React Native v0.71.10, I am facing issue regarded to the listening to the event. The code works fine in iOS devices, but in Android it is not getting listened.
To Reproduce :- 1. these version of packages in package.json
2. Add this in your useEffect
In iOS it works fine. In Android, there is no event log. We tried many suggestions from the community, seems like none of them works for this scenario.
Things we already tried :-