Tag Info

New answers tagged

1

You can: Use polling However, think about sending a request every 10 seconds. By using your suggested approach, you are keeping a long connection to the server, which is in turn keeping a busy process/thread. If this is used only by you, it's fine. If it's meant to be used by many users, it's a huge waste of resources, since the server will be busy doing ...


0

Basically you need to push data to the client, and as a bidirectional communication is not in the scope of http protocol, its not easy to implement it on your own. The Solution of your problem is socket.io As its website states, "Socket.IO enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing ...


0

In order to push data, you'd have to identify a Client, and that would be done by subscribing the client to the server. Once that's done you'd have a list of subscribed client with a persistent connection. Depending on what you want to achieve, I'd say it's best for the client to request to the server, so that you don't have to maintain a persistent ...


0

I cannot speak for how SE does it although since it is a website there are several ways that they could which could include a cron job set to run a php/asp/what-have-you script on the hour to push data. But this would be if you were looking for a web only solution. But since you are mentioning a client you could perhaps create a file with the date/time of ...



Top 50 recent answers are included