Skip to content

Commit 1f0fed4

Browse files
committed
Fix socket on frontend
1 parent 8b5b017 commit 1f0fed4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/MatchingService/socket.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { io, Socket } from 'socket.io-client';
22

33
// Create a socket instance
4-
const baseUrl = process.env.REACT_APP_BASE_URL;
5-
const socket: Socket = baseUrl ? io(baseUrl) : io("http://localhost:3001"); // Replace with your server URL if defined, otherwise use default URL
4+
const baseUrl = process.env.REACT_APP_MATCHING_BASE_URL;
5+
const socket: Socket = baseUrl ? io(baseUrl) : io("http://localhost:3005"); // Replace with your server URL if defined, otherwise use default URL
66

77
// Event listener for when a match is found
88
socket.on('matchFound', (user) => {

0 commit comments

Comments
 (0)