CFE-7 change socket transport

This commit is contained in:
AmirHossein Mahmoodi
2023-10-31 09:30:51 +03:30
parent 5ddad80b39
commit bf032a2ee6
3 changed files with 21 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ export const SocketProvider = ({children}) => {
const t = useTranslations()
const socket = useMemo(() => io(process.env.NEXT_PUBLIC_SERVER_SOCKET_URL, {
autoConnect: false,
transports: ['websocket'],
auth: {
token: ""
}