-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket.on() method is not triggered on updating data in react native chat #1252
Comments
Had the same issue with my App. I receive the very first event, then nothing else works. My temp fix for now is to stay with 2.1.1 and not update. At least it works. |
My problem is with the on method; It is not receiving user messages by the same user, because it works when it is called screen and I go back, it is a loading problem. constructor(props) {
When I send a message by the onSend method, calling the emit of the socket. The message arrives on the server. Plus the "On" can not hear the message. If I leave the screen and come back, it works. What can it be?? |
Anyone can solve this? I'm having the same error. Only the initial messages trigger the .on() method. |
When I send a message by the onSend method, calling the emit of the socket. The message arrives on the server. but |
I am having the same issue, I see the some PR have been raise, does anyone knows if there is a version with this fix? 😬 |
@raulangelj could you please open a new issue with all necessary details to reproduce the behavior you are seeing? The PR are unrelated. Thanks in advance! |
I have implement one to one chat using socket.io-client in react native..
I have 2 user they have messaging each other using socket.emit event. One user send message to other user but other user not get message because socket.on method is not triggering.
Socket is connected properly but i am receiving data which is send by other user??
The text was updated successfully, but these errors were encountered: