When using Express SDK, what problems occur if different clients log in to a room with the same userID?
2023-11-15
Products / Plugins:Video Call / Audio Call / Live streaming
Platform / Framework:All
Note
The business side must ensure that userID is globally unique to avoid simultaneous login on multiple clients.
If different clients use the same userID to log in to any room:
- The client user who previously logged in with that userID will be kicked offline and receive a notification of
room state changethrough the onRoomStateChanged/onRoomStateUpdate callback; the streaming and pulling in the previously logged in room will be stopped. - Other users in the room will receive a notification of
room user changethrough the onRoomUserUpdate callback.
