Use Buffer.byteLength instead of msg.length
Merge pull request #32 from mafintosh/patch-1

Use Buffer.byteLength instead of msg.length