If you try to create a websocket and then set the binaryType, the library currently does not set it on the ws variable in the internal state. Something this will now work:
var socket = new ReconnectingWebSocket(url);
socket.binaryType = "arraybuffer";
If you try to create a websocket and then set the
binaryType
, the library currently does not set it on thews
variable in the internal state. Something this will now work:Ref: http://stackoverflow.com/questions/16800979/can-a-websocket-switch-its-binarytype-on-the-fly