code: public void onOpen() {
      LOGGER.d("webSocket established...");
      connectionEstablished = true;
      retryConnectionCount = 0;
      for (AVConnectionListener listener: connectionListeners.values()) {
        listener.onWebSocketOpen();
      }
  
      resetConnectingStatus(true);
  
      // auto send login packet.
      LoginPacket lp = new LoginPacket();
      lp.setAppId(AVOSCloud.getApplicationId());
      lp.setInstallationId(AVInstallation.getCurrentInstallation().getInstallationId());
      this.sendPacket(lp);
    }
docs: WebSocketClientMonitor interfaces