News for hackers. Stuff that matters.
Re:Pushing Files to the Browser Using Delivery.js, Socket.IO... by ammmir on Saturday February 11, 2012 @04:52PM (#3580284)
base64 encoding binary files is just wrong when you could as well "push" the files' URLs over a websocket connection. that way you can take advantage of gzip compression and caching on the client.

it also looks like the server-side code uses the blocking fs.readFileSync() call to read the entire file into memory... but maybe it could have some uses for small dynamically-generated data. if so, not sure a "file" abstraction is needed :)

There are no comments on this comment yet.