From 63e7b6b79256a6d54b1fb5a91141e50516252499 Mon Sep 17 00:00:00 2001 From: thakiyudheen Date: Wed, 21 Aug 2024 23:30:45 +0530 Subject: [PATCH] last --- src/context/socketContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/socketContext.tsx b/src/context/socketContext.tsx index 9848e57..a3f809a 100644 --- a/src/context/socketContext.tsx +++ b/src/context/socketContext.tsx @@ -32,7 +32,7 @@ export const SocketProvider: React.FC<{ children: React.ReactNode }> = ({ childr // userId:data?.data?._id // } // }); - const newSocket = io('https://learnup-chat.onrender.com/api/chat', { + const newSocket = io('https://learnup-chat.onrender.com', { transports: ['websocket', 'polling'], query:{ userId:data?.data?._id