Skip to content

Changed host to hostname to avoid illegal url if a port is used #58

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

Closed
wants to merge 6 commits into from

Conversation

torbs
Copy link
Contributor

@torbs torbs commented Sep 2, 2014

window.location.host contains port number localhost:9001
window.location.hostname is without port number

Sync Listeners creates a websocket url using the "host" variable. Therefore the "host" variable cannot contain a port number.

@bmuenzenmeyer
Copy link
Member

Hi @torbs.

This pull request is a little messy. If you clean it up to only the change mentioned, it can be researched and accepted. As is, there are too many changes here for me to have time to look through.

@torbs
Copy link
Contributor Author

torbs commented Sep 18, 2014

Sorry. Forgot to switch branch before I tried some refactoring. I'll create another pull request with only the hostname/host fix

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