fix: path not taken into account for socket.io connection without token auth (#4226)

fix: path not taken into account for socket.io connection
This commit is contained in:
artu-ole
2024-08-06 15:05:50 +03:00
committed by GitHub
parent 5bccab0aa0
commit f05966b335
2 changed files with 2 additions and 2 deletions

View File

@@ -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
}
}

View File

@@ -69,7 +69,7 @@ export class SIOConnection {
},
})
} else {
this.socket.connect(url)
this.socket.connect(url, { path })
}
this.socket.on("connect", () => {