signalrService.ts

This commit is contained in:
burakovec
2025-10-06 11:58:09 +03:00
parent 4dae2824fb
commit 5fe3a36893

View File

@ -12,7 +12,7 @@ export const connectToHub = async () => {
connection = new signalR.HubConnectionBuilder() connection = new signalR.HubConnectionBuilder()
.withUrl(import.meta.env.VITE_SOCKET_URL, { .withUrl(import.meta.env.VITE_SOCKET_URL, {
withCredentials: true, withCredentials: false,
skipNegotiation: true, // WebSocket kullanırken negotiation atlanabilir skipNegotiation: true, // WebSocket kullanırken negotiation atlanabilir
transport: signalR.HttpTransportType.WebSockets transport: signalR.HttpTransportType.WebSockets
}) })