We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
wx
1 parent e741c68 commit 300c0b4Copy full SHA for 300c0b4
src/lib/connect/index.ts
@@ -106,7 +106,10 @@ function connect(
106
107
if (opts.unixSocket) {
108
opts.protocol = opts.protocol.replace('+unix', '') as MqttProtocol
109
- } else if (!opts.protocol?.startsWith('ws')) {
+ } else if (
110
+ !opts.protocol?.startsWith('ws') &&
111
+ !opts.protocol?.startsWith('wx')
112
+ ) {
113
// consider path only with ws protocol or unix socket
114
// url.parse could return path (for example when url ends with a `/`)
115
// that could break the connection. See https://github.com/mqttjs/MQTT.js/pull/1874
0 commit comments