News for hackers. Stuff that matters.
Re:Real-Time Web Analytics Dashboard with NodeJs, Socket.io,... by dcwca on Monday March 14, 2016 @06:55PM (#11286163)
> and the client side code is about 50 lines and completely resuable and DRY

Were you able to implement auto-reconnect with backoff? That's one of the most important features that something like Socket.io gives you.

Re:Real-Time Web Analytics Dashboard with NodeJs, Socket.io,... by jkarneges on Monday March 14, 2016 @09:41PM (#11286910)
If you don't need fallback to HTTP, there are some alternative libraries that handle auto reconnect for pure WebSockets:

https://github.com/fanout/websockhop

https://github.com/joewalnes/reconnecting-websocket

Re:Real-Time Web Analytics Dashboard with NodeJs, Socket.io,... by dtf on Tuesday March 15, 2016 @05:51AM (#11288518)
Also, if your traffic is basically one-way like in this example, don't forget Server-Sent Events, which are auto-reconnecting and well supported.
Re:Real-Time Web Analytics Dashboard with NodeJs, Socket.io,... by coltonv on Monday March 14, 2016 @08:07PM (#11286539)
Right now just a 3 time retry with hard coded delay between each one.