Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

310
Vistas
get users notification by angularjs and nodejs socket.io

i have two login pages one for doctor and one for admin. here admin can add patients. if admin added no.of new patients doctor wants to get new notification after he logged in. suppose admin added 10 patients then doctor wants to see those no.of newly added patients in message box . like doctors has to understand by seeing that 10 number in message symbol. here am using socket.io , angularjs and nodejs.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

First of all you need to make a connection using socket.io whenever a admin or doctor logs in just define the role(admin or doctor) while making the connection. Now whenever an Admin creates a new patient you need to emit an event to all the doctors that need to be notified. On the doctor's side keep listening to the new patient addition event using socket.io's 'on' method and display the notification thereafter. Also keep saving the notifications in the DB to show the count.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda