rejoinUntilConnected method Null safety

void rejoinUntilConnected()

Implementation

void rejoinUntilConnected() {
  _rejoinTimer.scheduleTimeout();
  if (socket.isConnected()) {
    rejoin();
  }
}