maybeReconnectOnOpen method

void maybeReconnectOnOpen()

Starts trying to reconnect if reconnection is enabled and we have not started reconnecting yet

@api private

Implementation

void maybeReconnectOnOpen() {
  // Only try to reconnect if it's the first time we're connecting
  if (!reconnecting && _reconnection == true && backoff!.attempts == 0) {
    // keeps reconnection from firing twice for the same reconnection loop
    reconnect();
  }
}