transports: fix WebSocket transport in the web browser

For realz this time...

3rd time's a charm? :p