Skip to content

Commit ea0616a

Browse files
author
shahriarsajeeb
committed
socket add done on frontend
1 parent 49c8a56 commit ea0616a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/components/Shop/DashboardMessages.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import styles from "../../styles/styles";
99
import { TfiGallery } from "react-icons/tfi";
1010
import socketIO from "socket.io-client";
1111
import { format } from "timeago.js";
12-
const ENDPOINT = "http://localhost:4000/";
12+
const ENDPOINT = "https://eshop-tutorial-owvt.vercel.app/";
1313
const socketId = socketIO(ENDPOINT, { transports: ["websocket"] });
1414

1515
const DashboardMessages = () => {

frontend/src/pages/UserInbox.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { useNavigate } from "react-router-dom";
99
import { AiOutlineArrowRight, AiOutlineSend } from "react-icons/ai";
1010
import { TfiGallery } from "react-icons/tfi";
1111
import styles from "../styles/styles";
12-
const ENDPOINT = "http://localhost:4000/";
12+
const ENDPOINT = "https://eshop-tutorial-owvt.vercel.app/";
1313
const socketId = socketIO(ENDPOINT, { transports: ["websocket"] });
1414

1515
const UserInbox = () => {

0 commit comments

Comments
 (0)