diff --git a/src/context/socket.ctx.tsx b/src/context/socket.ctx.tsx index ea46a22..57f6960 100644 --- a/src/context/socket.ctx.tsx +++ b/src/context/socket.ctx.tsx @@ -147,7 +147,7 @@ export const SocketProvider = ({ } const res = await fetch( - `${API_URL}/api/conversation-live-chat/${ + `${props.API_URL || API_URL}/api/conversation-live-chat/${ userId || genId() }/${_channelId}`, )