Skip to content

Commit

Permalink
add socket update
Browse files Browse the repository at this point in the history
  • Loading branch information
thakiyudheen committed Jul 15, 2024
1 parent 2f1412f commit fc9e08e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/context/socketContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export const SocketProvider: React.FC<{ children: React.ReactNode }> = ({ childr
useEffect(() => {
if (data?.data) {
// import.meta.env.VITE_SERVER_URL
const newSocket = io('https://acecart.shop', { transports: ['websocket'], withCredentials:true });
// , { transports: ['websocket'], withCredentials:true }
const newSocket = io('https://acecart.shop');


newSocket.on('connect', () => {
Expand Down

0 comments on commit fc9e08e

Please sign in to comment.