Actions
Activity #3530
openFeature #3752: Design of the web framework for Data Centre Software
Feature #1850: Design and Development for web based ANRS
Module #3527: Development for in-app real-time notifications
Socket client..Load Socket.IO in EJS
Start date:
04/25/2025
Due date:
% Done:
80%
Estimated time:
Planned Due Date:
04/28/2025
Description
In the file with notification logo
Socket.IO at client for real-time updates,
Defined in the page of notification logo to update logo inner text with counts on unread notifications
<script>
const socket = io();
socket.on('new_user_notification', () => {
fetchUnreadNotifications(); // This hits backend to fetch new data
});
async function fetchUnreadNotifications() {
const res = await fetch('/notifications/unread');
const data = await res.json();
updateNotificationBell(data.count);
renderNotificationList(data.notifications);
}
</script>
Updated by Siji Mathew over 1 year ago
- Status changed from New to In Progress
- % Done changed from 0 to 40
Actions