You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would take me a very long time to prepare a PR since the library is a little bit complicated. After my initial investigation, I find a clue. Since native WebSocket supports relative path, maybe we could think about using it to take place of ws.
Activity
robertsLando commentedon Jan 30, 2026
PR?
jim-king-2000 commentedon Jan 30, 2026
It would take me a very long time to prepare a PR since the library is a little bit complicated. After my initial investigation, I find a clue. Since native WebSocket supports relative path, maybe we could think about using it to take place of ws.
jim-king-2000 commentedon Apr 3, 2026
According to https://github.com/mqttjs/MQTT.js#customize-websockets-with-createwebsocket-websocket-only, we could use native WebSocket directly which supports relative path. The only thing left is to remove the url validation in the code base.
robertsLando commentedon Apr 7, 2026
PR?
fix: support relative WebSocket URLs (mqttjs#2049)