mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
Merge pull request #531 from Tria-plc/freight/feat/chat-app
chore: enable polling to the socket.io on the passenger clients
This commit is contained in:
@@ -37,7 +37,9 @@ export function useSupportSocket(
|
||||
`${SOCKET_ORIGIN}/${Passenger.PASSENGER_SUPPORT_WS_NAMESPACE}`,
|
||||
{
|
||||
auth: { token },
|
||||
transports: ['websocket'],
|
||||
// Prefer WebSocket, fall back to HTTP long-polling if the proxy blocks
|
||||
// the upgrade (polling rides normal HTTPS, already CSP-allowed).
|
||||
transports: ['websocket', 'polling'],
|
||||
withCredentials: true,
|
||||
},
|
||||
);
|
||||
|
||||
@@ -26,7 +26,9 @@ export function useSupportSocket(enabled: boolean) {
|
||||
`${SOCKET_ORIGIN}/${Passenger.PASSENGER_SUPPORT_WS_NAMESPACE}`,
|
||||
{
|
||||
auth: { guestId: getDeviceId() },
|
||||
transports: ['websocket'],
|
||||
// Prefer WebSocket, fall back to HTTP long-polling if the proxy blocks
|
||||
// the upgrade (polling rides normal HTTPS, already CSP-allowed).
|
||||
transports: ['websocket', 'polling'],
|
||||
withCredentials: true,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user