Skip to content

Conversation

@JeremyGeros
Copy link
Contributor

In this code when protocols is undefined as it is when using socket.io.

window.WebSocket = (url, protocols) =>
    req = new _WebSocket(url, protocols)

It will insert a header(below) into the request causing it to fail

Sec-WebSocket-Protocol: undefined 

This should allow the trackWebSockets option to be renabled by default

…bSocket handshake: Sec-WebSocket-Protocol mismatch
zackbloom added a commit that referenced this pull request Mar 7, 2014
When protocols is undefined do not pass it to new WebSocket()
@zackbloom zackbloom merged commit eff879e into CodeByZach:master Mar 7, 2014
@zackbloom
Copy link
Collaborator

Thanks @JeremyGeros!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants