transports: fix WebSocket transport in the web browser

For realz this time...
Merge pull request #187 from LearnBoost/fix/client-side-websocket-transport-again

transports: fix WebSocket transport in the web browser