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

115
Vistas
socket.io io.emit delayed broadcast

I have a client app similar to a map, where each client has the map rendered on their browser, and also its client's position on the map.

When a client moves, its coordinates update is sent to a socketIo server via socket.emit() and then on the server, I have said user coordinates broadcasted to everyone (including the client who moves itself) using io.emit(), so this way the position of each client gets updated on everyone's map at the same time when someone moves, capturing the positions of each client with socket.on().

I've noticed that for each specific client its own position gets updated live on their map, while the other clients' positions are being updated with a certain delay, and said delay escalates over time.

Also, no matter how fast I send the data (from 1 coordinate update per second to 5 for example), said delay seems to have a fixed time, so I am wondering if it's something related to a socketio config I'm missing.

Sorry that I couldn't bring code to the question, but the explanation should be pretty easy to understand.

Best regards, and thanks in advance.

about 4 years ago · Juan Pablo Isaza
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