Describe the bug
I encountered an issue where the RoomDisconnectedEvent is triggered twice with different reasons when calling room.disconnect().
To Reproduce
Steps to reproduce:
run example app,
Navigate to the room page.
Click the button to disconnect, which calls room.disconnect().
Expected behavior
The RoomDisconnectedEvent should only be triggered once upon disconnection, with a consistent event.reason.
Observed behavior
The RoomDisconnectedEvent is triggered twice, with each instance showing a different reason:
First event: DisconnectReason.disconnected
Second event: DisconnectReason.clientInitiated
Describe the bug I encountered an issue where the RoomDisconnectedEvent is triggered twice with different reasons when calling room.disconnect().
To Reproduce
Steps to reproduce: run example app, Navigate to the room page. Click the button to disconnect, which calls room.disconnect(). Expected behavior The RoomDisconnectedEvent should only be triggered once upon disconnection, with a consistent event.reason.
Observed behavior The RoomDisconnectedEvent is triggered twice, with each instance showing a different reason: First event: DisconnectReason.disconnected Second event: DisconnectReason.clientInitiated
Platform information