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

fix(client): dynamic protocol for socket.io #1401

Merged
merged 1 commit into from May 29, 2015
Merged

fix(client): dynamic protocol for socket.io #1401

merged 1 commit into from May 29, 2015

Conversation

ghost
Copy link

@ghost ghost commented May 12, 2015

Look up location.protocol for socket.io,
in order to use Karma in https-only enviournment

Closes #1400

@maksimr
Copy link
Contributor

maksimr commented May 12, 2015

@clexit Thanks!

Are you use https proxy?
Because karma run http server.

@ghost
Copy link
Author

ghost commented May 13, 2015

Hi @maksimr!

Yes, it's https that proxies to the local Karma instance. Since there is only https, socket.io fails to connect because of the hardcoded protocol (it tries to connect from https to the nonexistent http). While local http Karma is ok, we cannot configure http proxy due to security restrictions.

Can this change be merged? I've just noticed that the tag in the commit message might be incorrect. Does it matter for merge?

@maksimr
Copy link
Contributor

maksimr commented May 13, 2015

@clexit

Can this change be merged?

Yes, I think it's good change!

I've just noticed that the tag in the commit message might be incorrect. Does it matter for merge?

What tag? cli?

I think will be better change scope to client, because cli usual mean command line interface

fix(client): ...

Thanks

Look up location.protocol for socket.io,
in order to use Karma in https-only enviournment

Closes #1400
@ghost
Copy link
Author

ghost commented May 14, 2015

Cool, thanks!

I changed the scope tag to client. The history should be OK now.

@ghost ghost changed the title fix(cli): dynamic protocol for socket.io fix(client): dynamic protocol for socket.io May 14, 2015
@maksimr
Copy link
Contributor

maksimr commented May 14, 2015

@clexit Thanks

LGTM

@dignifiedquire
Copy link
Member

LGTM

@maksimr
Copy link
Contributor

maksimr commented May 14, 2015

#merge

@karmarunnerbot
Copy link
Member

Sent to presubmit as presubmit-master-pr-1401 Presubmit branch - Travis status

@maksimr
Copy link
Contributor

maksimr commented May 15, 2015

#merge

@zzo
Copy link
Contributor

zzo commented May 19, 2015

#merge

@karmarunnerbot
Copy link
Member

Sent to presubmit as presubmit-master-pr-1401 Presubmit branch - Travis status

@dignifiedquire
Copy link
Member

#merge

@karmarunnerbot
Copy link
Member

Sent to presubmit as presubmit-master-pr-1401 Presubmit branch - Travis status

dignifiedquire added a commit that referenced this pull request May 29, 2015
fix(client): dynamic protocol for socket.io
@dignifiedquire dignifiedquire merged commit 1809cdc into karma-runner:master May 29, 2015
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.

Hardcoded http protocol for socket.io
4 participants