Unsuccessful connecting to VerneMQ over secure websockets (wss) -- what options need to be set? #1832
-
We're using mqttjs 4.3.7 with Node.js 18.17.1 from the browser (quasar+vite+vuejs single-page application), and we're having trouble getting the Our wss url is similar to
Our server certificate is signed by a well-known authority, and the browsers are happy with it; they happily serve the rest of the site with no security warnings. Here's a connction code snippet:
After the timeout, there is no more information. I'm also trying to test with the mqtt cli client, but there doesn't appear to be a way to specify the path on the host or the full url to test publishing a message. I have a separate discussion regarding that. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Firstly upgrade to latest 5.5.0. Also please open an issue type of bug and fill all the fields requested (including logs) |
Beta Was this translation helpful? Give feedback.
-
Upgrading to 5.5.0 would require us to upgrade our Node.js version due to |
Beta Was this translation helpful? Give feedback.
-
I see at https://github.com/mqttjs/MQTT.js/blob/v5.5.0/package.json#L101
Is that correct? If so I'm going to have to dig a little into this |
Beta Was this translation helpful? Give feedback.
-
After some internetterwebby searching, we were able to get the error to go away by adding the statement below, where we set
This allowed us to start using |
Beta Was this translation helpful? Give feedback.
After some internetterwebby searching, we were able to get the error to go away by adding the statement below, where we set
viteConf.optimizeDeps
inquasar.config.js
:This allowed us to start using
5.5.0
. Hope this helps others.