Hacker News new | ask | show | jobs
by Qwertious 3987 days ago
>scrollaway 9 hours ago | parent | flag

If I leave this up for an hour without refreshing, I'll get:

>scrollaway 10 hours ago | parent | flag

Again, without ever refreshing the page.

1 comments

Can't that be done purely in the client? Why use WebSockets to to remote math?
It can be done with a few lines of javascript. You certainly don't need to contact the server to ask them how long ago a certain time was.