Skip to content

Multiple rooms reconnection fails #858

@fabiogambaaik

Description

@fabiogambaaik

Describe the bug
Hi, I have an Android application that connects to multiple rooms at the same time.

The issue occurs during reconnection (I simulated a connection drop by turning WiFi off and on). While some rooms reconnect successfully, others fail. The room that fails to reconnect is not always the same, and the issue happens frequently, although not every time.

I am logging the Room events, and this is what I see when I start my app (6 rooms connected):

Room Status: onConnected: 1002
Room Status: onConnected: 1006
Room Status: onConnected: 1004
Room Status: onConnected: 1003
Room Status: onConnected: 1005
Room Status: onConnected: 1001

Then I turn off the WiFi and I don't receive the event onReconnecting for the room 1002:

Room Status: onReconnecting: 1005
Room Status: onReconnecting: 1006
Room Status: onReconnecting: 1001
Room Status: onReconnecting: 1003
Room Status: onReconnecting: 1004

Finally, when I turn the Wi-Fi back on, I get:

Room Status: onReconnected: 1006
Room Status: onReconnected: 1001
Room Status: onReconnected: 1003
Room Status: onReconnected: 1005
Room Status: onReconnected: 1004

I also have a loop that checks the Room status every 5 seconds. When I turn off the Wi-Fi, it logs the following:

All Room Status every 5 seconds: 
1006: RECONNECTING
1005: RECONNECTING
1004: RECONNECTING
1003: RECONNECTING
1002: CONNECTED
1001: RECONNECTING

So the room 1002 stays in CONNECTED status, but it won't work after every other room reconnected.

Server

  • Version: 1.9.11
  • Environment: running the exe locally

Client

  • SDK: Android
  • Version: 2.23.2

Expected behavior
The client reconnects correctly to all the rooms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions