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

patch(hmr): use hostname for WS instantiation #426

Merged
merged 4 commits into from
Dec 29, 2017

Conversation

ksafranski
Copy link
Contributor

This is in response to #276 and removes hard-coded localhost for websockets to use the window.location.hostname instead, allowing users to run this on remote hosts or different domains.

@devongovett
Copy link
Member

Looks good, the tests are failing though. You'll need to shim window.location.hostname in https://github.com/parcel-bundler/parcel/blob/master/test/utils.js#L78

@ksafranski
Copy link
Contributor Author

Yeah, a bit hasty push on my part, will get that fixed and pushed.

@ksafranski
Copy link
Contributor Author

Tests passing, lmk if there's anything else needed.

@devongovett devongovett merged commit 06d5ffc into parcel-bundler:master Dec 29, 2017
@ksafranski ksafranski deleted the patch-ws-hostname branch December 29, 2017 20:33
devongovett pushed a commit that referenced this pull request Oct 15, 2018
* patch(hmr): use hostname for WS instantiation

* test(hmr): add hostname shim for testing

* Move location shim somewhere common
devongovett pushed a commit that referenced this pull request Oct 15, 2018
* patch(hmr): use hostname for WS instantiation

* test(hmr): add hostname shim for testing

* Move location shim somewhere common
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