This message was deleted.
# helpdesk
s
This message was deleted.
f
For example, If the user try to switch between many channels frequently, I could reproduce this issue
p
hi! this will happen if you’re trying to connect to a (new) room while the connection to the previous room hasn’t been fully established yet. Are you allowing your users to switch to rooms before they successfully connected to the previous one?
f
Yes. But I have one question. How many seconds would be taken to establish full connection?
@polite-kilobyte-67570
Thanks for your answer
How can I detect if it's connected fully?
p
that depends on the users’ network. you can await the connection with
await room.connect(…)
or listen to the
RoomEvent.Connected
event.
f
Understand. So the user can disconnect after
await room.connect(…)
Got it. Thanks
p
yes! just to be safe, you should also await the disconnect call with
await room.disconnect()
it should be fairly quick, but might not be instant.
🙌 1