switchTo method

Future<void> switchTo(
  1. String roomId, {
  2. String? token,
})

Moves the local participant to the room roomId, optionally with a new token.

Events.roomJoined fires again once the move lands, carrying the id of the room switched to; id then reads that id.

Implementation

Future<void> switchTo(String roomId, {String? token}) =>
    _backend.switchTo(roomId, token: token);