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

fix(ws): add all parts of object to opts #1194

Merged
merged 4 commits into from
Oct 29, 2020
Merged

Conversation

YoDaMa
Copy link
Contributor

@YoDaMa YoDaMa commented Oct 29, 2020

this is to fix the regression published in v4.2.3

@YoDaMa
Copy link
Contributor Author

YoDaMa commented Oct 29, 2020

related #1193

opts.hostname = parsed.hostname
opts.href = parsed.href
opts.origin = parsed.origin
opts.pathname = parsed.pathname

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi 👋

I just upgraded the version of MQTT.js I'm using to the latest one (4.2.3).
Now I have an error while connecting because the path is not being included in the URL, even after this PR.
Did a few tests and added an extra opts.path = parsed.pathname and now the path is passed down and it connects. Can you take a look?
For example, an URL like: wss://example.server/mqtt would try to connect to wss://example.server.
Thank you!

@YoDaMa YoDaMa merged commit 6240565 into mqttjs:master Oct 29, 2020
@YoDaMa YoDaMa deleted the fix-opts branch February 10, 2022 15:21
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.

None yet

2 participants