Skip to content

Conversation

@gregwym
Copy link
Contributor

@gregwym gregwym commented Aug 11, 2014

With socket.io 1.0.6, when opening ioSocket with null as URL, io() will
omit the option object. As a result, query and Auth Token will not be
sent through handshake.

With socket.io 1.0.6, when opening ioSocket with null as URL, io() will
omit the option object. As a result, `query` and Auth Token will not be
sent through handshake.
@meeDamian
Copy link
Contributor

Are you referring to this?

@gregwym
Copy link
Contributor Author

gregwym commented Aug 11, 2014

Nope, I'm referring to https://github.com/Automattic/socket.io-client/blob/master/socket.io.js#L41. This is where the io() constructor goes first when I stepping through it with the debugger. And since typeof null => 'object', the query option is dropped.

@meeDamian
Copy link
Contributor

👍

DaftMonk added a commit that referenced this pull request Aug 12, 2014
fix(gen:app:socket): use `''` instead `null` as URL to open ioSocket
@DaftMonk DaftMonk merged commit 70301e8 into angular-fullstack:master Aug 12, 2014
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.

3 participants