diff --git a/packages/hoppscotch-common/src/helpers/realtime/SIOClients.ts b/packages/hoppscotch-common/src/helpers/realtime/SIOClients.ts index 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.ts index 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", () => {