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: path not taken into account for socket.io connection without token auth (#4226)
artu-olef05966b3357d
diff --git a/packages/hoppscotch-common/src/helpers/realtime/SIOClients.ts b/packages/hoppscotch-common/src/helpers/realtime/SIOClients.tsindex 83f3b25e8..abb4b059d 100644--- a/packages/hoppscotch-common/src/helpers/realtime/SIOClients.ts+++ b/packages/hoppscotch-common/src/helpers/realtime/SIOClients.ts@@ -5,7 +5,7 @@ import { io as ClientV3, Socket as SocketV3 } from "socket.io-client-v3"type Options = {path: string- auth: {+ auth?: {token: string | undefined}}diff --git a/packages/hoppscotch-common/src/helpers/realtime/SIOConnection.ts b/packages/hoppscotch-common/src/helpers/realtime/SIOConnection.tsindex 5aeed9bc6..f010705d6 100644--- a/packages/hoppscotch-common/src/helpers/realtime/SIOConnection.ts+++ b/packages/hoppscotch-common/src/helpers/realtime/SIOConnection.ts@@ -69,7 +69,7 @@ export class SIOConnection {},})} else {- this.socket.connect(url)+ this.socket.connect(url, { path })}this.socket.on("connect", () => {