dispose method

void dispose()

Disposes the connection handler, but does not close the connection.

Implementation

void dispose() {
  client.addStreamingConnectionStatusListener(_onConnectionStatusChanged);
  _countdownTimer?.cancel();
  _countdownTimer = null;
}