Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

132
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda