Skip to content

Commit

Permalink
fix:socket
Browse files Browse the repository at this point in the history
Signed-off-by: Shruti3004 <mail2shruti.ag@gmail.com>
  • Loading branch information
Shruti3004 committed Jun 27, 2023
1 parent 7aab254 commit c26e5a2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions apps/agri-mitra/src/context/ContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,12 @@ const ContextProvider: FC<{
const audioRef = useRef(null);

console.log(messages);

const socket = io(URL);
useEffect(() => {
if (
localStorage.getItem("userID") &&
localStorage.getItem("auth")
// || isMobileAvailable
) {
socket.on("connect", () => {
console.log("CLIENT CONNECTED"); // x8WIv7-mJelg7on_ALbx
});

setNewSocket(
io(URL, {
Expand Down

1 comment on commit c26e5a2

@vercel
Copy link

@vercel vercel bot commented on c26e5a2 Jun 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.