Skip to content

Commit

Permalink
deployment: socket fix
Browse files Browse the repository at this point in the history
  • Loading branch information
giahienhoang99 committed Nov 25, 2024
1 parent 1c383ab commit c014903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/context/SocketContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const SocketContextProvider = ({ children }) => {

useEffect(() => {
if (authUser) {
const socket = io("http://localhost:5001", {
const socket = io("https://mern-realtime-chat-app-vg7s.onrender.com", { // http://localhost:5001
query: {
userId: authUser._id,
},
Expand Down

0 comments on commit c014903

Please sign in to comment.