We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Webpack dev server transportMode: 'ws' should work as expected when loaded inside a context of a Chrome extension popup.
transportMode: 'ws'
Webpack dev server transportMode: 'ws' throws an error that the url is not valid. The problem is with this line of code
_this.client = new WebSocket(url.replace(/^http/, 'ws'));
found in WebsocketClient.js
It assumes that the protocol will be one of http:/https:, but in chrome extension popup it's actually chrome-extension:
http:
https:
chrome-extension:
Set the transportMode: 'ws' config to the dev server, and use it to serve a browser extension popup
The text was updated successfully, but these errors were encountered:
Since in the v4, transportMode is now ws by default, we now get that error by default. At least, on my side, I am getting it in chrome.
transportMode
ws
Sorry, something went wrong.
@CPatchane Please create reproducible test repo
I got it in a big project, I'll try to reproduce it in a minimal repo 👍
Possibly fixed in master via #2954. Could you test it?
master
Yep, fixed, feel free to feedback
No branches or pull requests
Code
Expected Behavior
Webpack dev server
transportMode: 'ws'
should work as expected when loaded inside a context of a Chrome extension popup.Actual Behavior
Webpack dev server
transportMode: 'ws'
throws an error that the url is not valid. The problem is with this line of codefound in WebsocketClient.js
It assumes that the protocol will be one of
http:
/https:
, but in chrome extension popup it's actuallychrome-extension:
For Bugs; How can we reproduce the behavior?
Set the
transportMode: 'ws'
config to the dev server, and use it to serve a browser extension popupThe text was updated successfully, but these errors were encountered: