Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: parse mqtt pathname - fixed #1959
liyasthomas8f9bb621b8b2
diff --git a/packages/hoppscotch-app/components/realtime/Mqtt.vue b/packages/hoppscotch-app/components/realtime/Mqtt.vueindex 77efd5c45..b34bd1f57 100644--- a/packages/hoppscotch-app/components/realtime/Mqtt.vue+++ b/packages/hoppscotch-app/components/realtime/Mqtt.vue@@ -244,7 +244,9 @@ export default defineComponent({]const parseUrl = new URL(this.url)this.client = new Paho.Client(- parseUrl.hostname,+ `${parseUrl.hostname}${+ parseUrl.pathname !== "/" ? parseUrl.pathname : ""+ }`,parseUrl.port !== "" ? Number(parseUrl.port) : 8081,"hoppscotch")