@Override
    public String toString() {
        return "UserSession{"
                + "id="
                + id
                + ", version="
                + version
                + ", userId="
                + userId
                + ", deviceType="
                + deviceType
                + ", loginDate="
                + loginDate
                + ", loginLocation="
                + loginLocation
                + ", isSessionOpen="
                + isSessionOpen
                + ", connection="
                + connection
                + '}';
    }
A session cannot reopen once closed, but the connection can close and reconnect.

@return true if the session was online
turms-gateway/src/main/java/im/turms/gateway/access/client/common/UserSession.java