Xiajijian
2026-03-07 4d314c8b1232773cb5c8288ea6ed6ff6fe8ee4b9
ard-work/src/main/java/com/ard/work/component/websocket/WebSocketSessionManager.java
@@ -28,4 +28,9 @@
    public static int getOnlineUserCount() {
        return ONLINE_USER_SESSIONS.size();
    }
    public static boolean containsUser(Long userId) {
        return ONLINE_USER_SESSIONS.containsKey(userId);
    }
}