signalrService.ts
This commit is contained in:
@ -12,7 +12,7 @@ export const connectToHub = async () => {
|
||||
|
||||
connection = new signalR.HubConnectionBuilder()
|
||||
.withUrl(import.meta.env.VITE_SOCKET_URL, {
|
||||
withCredentials: true,
|
||||
withCredentials: false,
|
||||
skipNegotiation: true, // WebSocket kullanırken negotiation atlanabilir
|
||||
transport: signalR.HttpTransportType.WebSockets
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user