-
Notifications
You must be signed in to change notification settings - Fork 83
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
ws does not work in the browser. Browser clients must use the native WebSocket object (7.0.13) #162
Comments
Afaik that's the issue with |
release 4.2.1 (#1149) fixes this. |
I can confirm that manually updating to 4.2.1 in package-lock.json and re-running npm install fixes the issue, how can we specify it to pull 4.2.1 w/o having to manually edit package-lock.json? |
we use exact version in nxg-mqtt |
It seems the version on npm has a dependency on mqtt exact version 4.2.0. After extracting, these are the dependencies in package.json: "dependencies": {
"mqtt": "4.2.0",
"tslib": "^1.10.0"
}, |
I just published v7.0.14 with |
Great @sclausen, thanks for the quick response! |
I'm submitting a...
Current behavior
Throws a "ws does not work in the browser. Browser clients must use the native WebSocket object". Does not happen in 7.0.12
Expected behavior
Connects to MQTT using websockets.
Minimal working example of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: