Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why am i getting an error - Room not avaliable roomid: {id} #1045

Open
Vladislavlr opened this issue Jul 12, 2022 · 2 comments
Open

why am i getting an error - Room not avaliable roomid: {id} #1045

Vladislavlr opened this issue Jul 12, 2022 · 2 comments

Comments

@Vladislavlr
Copy link

why am i getting an error - Room not avaliable roomid: {id}

@MediaKitApp
Copy link

In some cases when you use this code:

connection.checkPresence(ROOM_ID, function (isRoomExist) {
             if (isRoomExist) {
                   console.log("ROOM EXIST")
                } else {
       	           console.log("ROOM NOT EXIST")
             }
});

There is usually a bug and it does not correctly take the ID to check if the room exists, the solution is to create a loop with setTimeout(), to constantly check if the room exists.

It is a bug that happens very often.

@GovindCS
Copy link

Because, room is already running in socket with same id,

try colse before open
connection.closeSocket(ROOM_ID)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants