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?
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