Skip to content
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

Transports order of preference #405

Merged
merged 1 commit into from
Mar 12, 2012
Merged

Transports order of preference #405

merged 1 commit into from
Mar 12, 2012

Conversation

zzzaaa
Copy link
Contributor

@zzzaaa zzzaaa commented Mar 12, 2012

When set list of transports as ['xhr-polling', 'jsonp-polling', 'websocket', 'flashsocket']
I wont try first connection to 'xhr-pooling', but connecting to 'websocket'
From server returned "16698093471053227150:60:256:websocket,flashsocket,xhr-polling,jsonp-polling" (websocket first)
I think after util.merge() list of transport be broken.

Small fix solve this problem

@rauchg
Copy link
Contributor

rauchg commented Mar 12, 2012

The handshake response shouldn't change based on the client transports preference.

@zzzaaa
Copy link
Contributor Author

zzzaaa commented Mar 12, 2012

Sure. I think handshake return something like "supported transports".

@rauchg
Copy link
Contributor

rauchg commented Mar 12, 2012

But you're saying the client is not generating the right intersection of transports.

@zzzaaa
Copy link
Contributor Author

zzzaaa commented Mar 12, 2012

Sry for bad english.
intersection of transports correct, but order of transports not.

rauchg added a commit that referenced this pull request Mar 12, 2012
Transports order of preference
@rauchg rauchg merged commit f54ef03 into socketio:master Mar 12, 2012
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