Skip to content

fix(gen:app:socket): use '' instead null as URL to open ioSocket #435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2014
Merged

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