enh: user status indicator

This commit is contained in:
Timothy Jaeryang Baek
2024-12-26 23:29:33 -08:00
parent c53ace3c98
commit 50534a0dcf
8 changed files with 128 additions and 22 deletions
+4 -4
View File
@@ -14,7 +14,7 @@
WEBUI_NAME,
mobile,
socket,
activeUserCount,
activeUserIds,
USAGE_POOL,
chatId,
chats,
@@ -81,9 +81,9 @@
}
});
_socket.on('user-count', (data) => {
console.log('user-count', data);
activeUserCount.set(data.count);
_socket.on('user-list', (data) => {
console.log('user-list', data);
activeUserIds.set(data.user_ids);
});
_socket.on('usage', (data) => {