Project

General

Profile

Actions

Activity #3530

open

Feature #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

Added by Thara S Pillai over 1 year ago. Updated about 1 year ago.

Status:
In Progress
Priority:
Normal
Assignee:
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>

Actions #1

Updated by Thara S Pillai over 1 year ago

  • Description updated (diff)
Actions #2

Updated by Siji Mathew over 1 year ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 40
Actions #3

Updated by Siji Mathew about 1 year ago

  • % Done changed from 40 to 80
Actions

Also available in: Atom PDF