Skip to content

Commit

Permalink
chore: use websocket transport
Browse files Browse the repository at this point in the history
  • Loading branch information
pociej committed Jun 14, 2024
1 parent f3ea65f commit 673bb9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/hooks/userUserData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useLocalStorage } from "./useLocalStorage";

const socket = io(`${import.meta.env.VITE_BACKEND_WS_URL}/me`, {
autoConnect: false,
transports: ["websocket"],
});

export const useUserData = () => {
Expand Down

0 comments on commit 673bb9b

Please sign in to comment.