Reputation: 303
I want to present data (which is on the server) on the client (mobilphone). Data is changed rarely (once a day) or frequently (more times in a hour). I dont want to client always asks server because battery of mobil would drain fast. But I want to see the changed data as soon as possible on the phone. Is there any way to do this? I could use php on the server or php/js on the client. The data is a file and its modified time can be read by server.
Upvotes: 2
Views: 4264
Reputation: 166
As far as I see you have two option that doesn't require the client to keep checking your server (not as much).
I suggest use web-socket, which is more practical and with better cross-browser support.
Upvotes: 4