refactor: use apiUrl

This commit is contained in:
karishmas6
2024-11-01 08:26:00 +05:30
parent a0eb6d427e
commit 5cbab56386
2 changed files with 4 additions and 2 deletions

View File

@@ -1,7 +1,8 @@
import React, { createContext, useCallback, useContext, useMemo, useState } from 'react';
import { io, Socket } from 'socket.io-client';
import { apiUrl } from "../apiConfig";
const SERVER_ENDPOINT = 'http://localhost:8080';
const SERVER_ENDPOINT = apiUrl;
interface SocketState {
socket: Socket | null;