einaros/ws — pull request #158 by inolen (2013-02-03 09:09:44+00:00)
Title: Don't use byteLength when sending ArrayBufferView

Currently the send code is using the byteLength property of the ArrayBuffer object when prepping the internal Node Buffer to send.

I've changed it to use byteLength if passed a raw ArrayBuffer, and to use length if working with an ArrayBufferView.