disconnect method
Destroy the WSS connection by calling close
method on the Peer
object.
Implementation
Future<void> disconnect() async {
if (isConnected) {
_log('closing connection...');
await _peer!.close();
_log('done !');
} else {
_log('socket is not opened');
}
}