I am recently implementing a chat function and run into a weird problem:
- Firstly 2 web clients join a room successfully
- client 1 disconnected(by switch to other page) and leave the room – client 2 can receive related
presence_diff
leaving message successfully - client 1 reconnected(switch back) and join the room successfully – at times(not 100%) client 2 could NOT receive related
presence_diff
joining message(supposed to receive), thus they can’t receive message sent from each other. But they are indeed in the same room.
Is it related to network condition? It only happened in QA’s staging env. I tested it in my local dev env and it never happened.
I have no idea where to start to debug it at all. Anybody has some hint?