Fix binary websocket connections
Merge pull request #1091 from xose/patch-1

Fix binary websocket connections