moveToChannel method

void moveToChannel({
  1. required Channel channel,
  2. List<String>? temporaryAccessTokens,
})

Implementation

void moveToChannel(
    {required Channel channel, List<String>? temporaryAccessTokens}) {
  Proto.UserState msg = new Proto.UserState();
  msg.channelId = channel.channelId;
  msg.session = session;
  if (temporaryAccessTokens != null) {
    msg.temporaryAccessTokens.addAll(temporaryAccessTokens);
  }
  _client.writeMessage(msg);
}