disconnect method

Future<void> disconnect()

Implementation

Future<void> disconnect() async {
  try {
    await _hubConnection.stop();
    refreshSocketStatus(_hubConnection.state);
  } catch (e) {
    log(e.toString());
  }
}