Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

80
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!