Atualizar web/chat.js

This commit is contained in:
2026-08-19 20:57:27 -03:00
parent 320ccf97e8
commit 7927acdda8
+7
View File
@@ -173,3 +173,10 @@ async function sendMessage() {
}
window.onload = loadConversations;
const ws = new WebSocket("ws://" + window.location.host + "/ws/notifications");
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
// Show toast, badge, etc.
};