Hacker News new | ask | show | jobs
by scrollaway 3987 days ago
> WebSockets (real-time updates of comment timestamps)

What are you talking about?

1 comments

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

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.