RTCMultiConnection
RTCMultiConnection copied to clipboard
why am i getting an error - Room not avaliable roomid: {id}
why am i getting an error - Room not avaliable roomid: {id}
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.
Because, room is already running in socket with same id,
try colse before open connection.closeSocket(ROOM_ID)