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

81
Visualizações
Confirm is prompt one by one on users screen javascript

I'm making project using socket.io nodejs,When server emits to all users in a room, In client side there is confrim javascript function,Which is being called one by one in all users screen,below is client side code,

socket.on('resetcount',function(){
    if (confirm('Do you want to reset board?')) {
        socket.emit('count',roomnumber);
    }
});

Is it possible that it will prompt at the same time in all users screen, Or socket.io server works this way?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

exactly the same time is very difficult. If you fire an event, you are stuck with rendering time of the client (browser/internet connection /hardware). But if approximately(+- couple of sec) the same time is acceptable for you. Then socket.io is the way to go

over 4 years ago · Santiago Trujillo 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