Create Room without Joining rtcmulticonnection

297 Views Asked by At

I can create and join a room using:

document.getElementById('open-room').onclick = function() {
  var roomid = roomName.value;
  if (!roomid.length) return alert('Please enter roomid.');
  this.disabled = true;
  connection.openOrJoin(roomid, function(isRoomAlreadyCreatedBySomeoneElse) {
      if (isRoomAlreadyCreatedBySomeoneElse == false) nOpenRoom();
      showRoomURL(connection.sessionid);
    } else {
      showRoomURL(roomid);
      document.getElementById('open-room').parentNode.innerHTML = '';
    }
  });
};

How can I create a room without Joining?

0

There are 0 best solutions below