We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b5b017 commit 1f0fed4Copy full SHA for 1f0fed4
frontend/src/components/MatchingService/socket.tsx
@@ -1,8 +1,8 @@
1
import { io, Socket } from 'socket.io-client';
2
3
// 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
+const baseUrl = process.env.REACT_APP_MATCHING_BASE_URL;
+const socket: Socket = baseUrl ? io(baseUrl) : io("http://localhost:3005"); // Replace with your server URL if defined, otherwise use default URL
6
7
// Event listener for when a match is found
8
socket.on('matchFound', (user) => {
0 commit comments