hangup method

Future<void> hangup()
override

sends hangup request on current active JanusVideoRoomPlugin to tear off active PeerConnection in-effect leaving the room.

Implementation

Future<void> hangup() async {
  await super.hangup();
  await this.send(data: {"request": "leave"});
}