News for hackers. Stuff that matters.
Re:Pushing Files to the Browser Using Delivery.js, Socket.IO... by shaka881 on Saturday February 11, 2012 @03:50PM (#3580122)
It's not pushing, the browser still has to poll - it's just enqueueing files for transfer, right?

Even if that use case has some utility (of which I'm dubious), it still needlessly breaks the addressability semantics of URLs. It would be much better, in my opinion, to have the backend issue redirect to an unambiguous URL that refers to the static resource, then let the web server do the thing it's good at.

Re:Pushing Files to the Browser Using Delivery.js, Socket.IO... by firefoxman1 on Saturday February 11, 2012 @04:03PM (#3580147)
It only uses polling if the browser doesn't support WebSockets, in which case socket.io would fall back to another method. Otherwise it is truly pushing.

From looking at the source, it looks like it encodes the file as a DataURL in base64 to send the files.