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

133
Vistas
How to implement a distributed countdown timer with Firebase

So basically I'm running an online game site whereby each "match" would be a certain duration, after said duration the "match" would change in name and details. How do I implement a live countdown which synchronizes with all users, which continues running on the server side even when a user closes the window?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You don't need a distributed counter for this. The timestamp you need is state, and state should be managed by the game server.

In Firebase (or Firestore) you can implement this functionality with a snapshot listener. Each client would then subscribe to this listener. See this question for an example: How to implement a distributed countdown timer in Firebase.

Also, you might find useful this thread on Reddit. https://www.reddit.com/r/Firebase/comments/mnitde/making_a_timer_for_a_tabletop_game_in_firebase/

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