How to make a counter running on a server? -


i know how make counter continuously runs on server , accessible clients (e.g web browsers) anytime (the counter being running continuously on server - means don't have connect server client). have no specific request programming language, need know best way it

thanks lot help

since timer independent of else, should able use web framework it, depending on you're familiar with. since prefer node.js, i'd write simple express.js website, incrementing counter using timing library or built-in javascript function.

since timer independent of clients, i'd use socket.io emit signals when timer updates clients see changes in real time.

if timer going run longer time, may want think how persist if/when server shut down.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -