获取某一房间的用户

This commit is contained in:
2026-05-16 22:22:34 +08:00
parent 71efb34795
commit 75884d7b4b
5 changed files with 258 additions and 9 deletions

View File

@@ -106,6 +106,16 @@
</div>
</div>
<div id="onlineUsersList" class="glass rounded-xl p-4 mb-6 hidden">
<div class="flex items-center justify-between mb-2">
<h3 class="text-sm font-medium text-gray-300">在线用户</h3>
<span id="onlineUsersSummary" class="text-xs text-gray-500">0 人在线</span>
</div>
<div id="usersContainer" class="max-h-56 overflow-y-auto space-y-3">
<!-- 在线用户将在这里动态生成 -->
</div>
</div>
<!-- WebSocket连接状态指示 -->
<div id="wsStatus" class="mt-4 flex items-center justify-center gap-2 text-xs text-gray-500">
<span id="wsStatusDot" class="w-2 h-2 bg-gray-500 rounded-full"></span>