fix sockets

This commit is contained in:
Mary Hipp 2024-01-26 15:58:39 -05:00
parent 0246472683
commit be5bf2fcb0

View File

@ -45,7 +45,7 @@ export const useSocketIO = () => {
const socketOptions = useMemo(() => {
const options: Partial<ManagerOptions & SocketOptions> = {
timeout: 60000,
path: `${window.location.pathname}ws/socket.io`,
path: baseUrl ? '/ws/socket.io' : `${window.location.pathname}ws/socket.io`,
autoConnect: false, // achtung! removing this breaks the dynamic middleware
forceNew: true,
};