close method

Future<void> close()

Closes all peer connections, local streams, and the socket connection.

Implementation

Future<void> close() async {
  await _cleanSessions();
  _socket.close();
}