enter method

Future<void> enter()

Enters to this channel

Implementation

Future<void> enter() async {
  final cmd = Command.buildEnterChannel(this);
  final result = await _sdk.cmdManager.sendCommand(cmd);
  if (result == null) {
    throw WebSocketError();
  }
  participantCount = result.payload['participant_count'];
  entered = true;
}