mrjoes/sockjs-tornado — pull request #24 by cablehead (2012-09-17 20:49:31+00:00)
Title: Allow support for BinaryFrames over raw websockets

This patch allows the binary option to be bubbled down from send to rawwebsocket's
write_message.

It's not currently possible to send a message over the sockjs-tornado
"rawwebsocket" as binary instead of utf8.

Websocket defines both TextFrame and BinaryFrame when sending messages,
and there are different opcodes for each. This leads to issues with for
example when iOS websocket clients receives a TextFrame with binary in it.

Only the rawwebsocket's tranport has been updated to alter behavior when
the binary flag is set, as the other transports are javascript specific,
and javascript doesn't have support for binary.