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
support user to customize the path to socket-io server
herbertc8258997f3e41
diff --git a/components/realtime/socketio.vue b/components/realtime/socketio.vueindex 322fd9094..2d0239645 100644--- a/components/realtime/socketio.vue+++ b/components/realtime/socketio.vue@@ -13,6 +13,16 @@@keyup.enter="urlValid ? toggleConnection() : null"/></li>+ <div>+ <li>+ <label for="socketio-path">{{ $t("path") }}</label>+ <input+ id="socketio-path"+ spellcheck="false"+ v-model="path"+ />+ </li>+ </div><div><li><label for="connect" class="hide-on-small-screen"> </label>@@ -28,7 +38,6 @@</div></ul></pw-section>-<pw-section class="purple" :label="$t('communication')" id="response" ref="response"><ul><li>@@ -84,6 +93,7 @@ export default {data() {return {url: "ws://",+ path: "/socket.io",connectionState: false,io: null,communication: {@@ -115,7 +125,12 @@ export default {]try {- this.io = new io(this.url)+ if(!this.path){+ this.path = '/socket.io'+ }+ this.io = new io(this.url,{+ path: this.path+ })// Add ability to listen to all eventswildcard(io.Manager)(this.io)this.io.on("connect", () => {