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:
@@ -5,7 +5,7 @@ import { io as ClientV3, Socket as SocketV3 } from "socket.io-client-v3"
|
|||||||
|
|
||||||
type Options = {
|
type Options = {
|
||||||
path: string
|
path: string
|
||||||
auth: {
|
auth?: {
|
||||||
token: string | undefined
|
token: string | undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ export class SIOConnection {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.socket.connect(url)
|
this.socket.connect(url, { path })
|
||||||
}
|
}
|
||||||
|
|
||||||
this.socket.on("connect", () => {
|
this.socket.on("connect", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user