-
Notifications
You must be signed in to change notification settings - Fork 189
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
Get websocket port from document.currentScript
if possible
#30
Comments
Yea - this is something on my radar. I do have a TODO in the source code tracking this. I'm also waiting for webpack/webpack-dev-server#2055 to land so that public path can be properly supported. I have some code written already - if you want to pick this up I can share them cause atm I'm focusing on #7 and #10 |
Another idea would be to add settings options for "hostname" and "port" for the socket connection... In my particular configuration, the deserver is running on different port with different hostname as well. |
@pmmmwh yeah I'd be happy to pick it up and work on it. Would be great to see what you've already done! @markovicdenis Yeah - you can actually get those from |
@mmhand123 I was able to utilize the @pmmmwh Would you like a PR for this? |
@carrickjason - Would be great if you could do a PR for this. We are running into the same issue. |
Yes, it would help. This implementation could also help - it seems to fit our use cases well in terms of handling custom servers and also |
When I tried to access I'd wouldn't mind trying to implement this, but at a bit of a loss. Unless we just allow custom ports. |
Sorry if this is a duplicate. I saw there was #10 but I think this is a little different. With
webpack-dev-server
we're running it off another port locally. I looked at howwds
tries to establish the socket and noticed__resourceQuery
, but also that it falls back to trying to usedocument.currentScript
. For the time being would it be ok to add in trying to parsedocument.currentScript
and fall back to the current behavior? Happy to PR this, just wanted to check if it was something you'd want 😁The text was updated successfully, but these errors were encountered: