Haha thanks for the information, I don't know very mucht about UTF8 / UTF-16
Socket.io don't support binary yet :( If you think its easy to create a compressToUTF8() than I say :) I quick compression check gives me this
msg = {data:'I say hello'} console.log('no compression',JSON.stringify(msg).length) compr = LZString.LZString.compressToUTF16(JSON.stringify(msg)); console.log('compression',compr.length);
no compression 22 compression 17
msg = {data:'I say hello, I can say more and more text so this is big'} console.log('no compression',JSON.stringify(msg).length) compr = LZString.LZString.compressToUTF16(JSON.stringify(msg)); console.log('compression',compr.length);
E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).