If you have a transport that supports binary data, I've found that msgpack is a pretty compact format. Also application-level compression is also possible using something like gzip's deflate. (I need a pure js inflate and deflate for git anyway, so the code will be there) But for all these you need a binary transport.
Most browsers nowadays support binary websockets, but not all the libraries like socket.io do. You can write an ultra simple library that just uses websockets directly, and then later on add long-poll (which also supports binary), but beware lest you end up implementing socket.io again unintentionally. - https://github.com/creationix/msgpack-js - the msgpack codec I wrote that works in node and browsers. - https://github.com/creationix/msgpack-js-browser - A browser only version of my msgpack codec. - https://github.com/chrisdickinson/inflate - the inflate library I'm using for js-git Also since msgpack supports binary data within the encoding, you could deflate certain messages if deflating the entire stream was too much. -Tim Caswell On Fri, Jul 5, 2013 at 5:45 PM, Ryan Schmidt <[email protected]>wrote: > > On Jul 5, 2013, at 15:10, Guillermo Rauch wrote: > > > POST compression is indeed not supported, which would make compression > unidirectional for the polling transport. > > That's unfortunate. > > It's becoming more common to see web apps for document editing, such as > Google Docs or Apple's forthcoming iWork for iCloud. I would expect such > apps to need to transfer larger amounts of data from the client to the > server than traditional web sites. How should such sites mitigate this > problem? > > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
