disconnect method

Future<void> disconnect()

Disconnect from relay.

Implementation

Future<void> disconnect() async {
  _heartbeatTimer?.cancel();
  await _socket?.close();
  _socket = null;
}