public void close(CloseReason closeReason) {
        isConnected = false;
        isConnectionRecovering = false;
        isSwitchingToUdp = closeReason.closeStatus()
                .equals(SessionCloseStatus.SWITCH);
    }
true if it is switching UDP to TCP/WebSocket
turms-gateway/src/main/java/im/turms/gateway/access/client/common/connection/NetConnection.java