websocket url modified

This commit is contained in:
sumedh
2024-09-23 14:39:32 +05:30
parent 9e762000d3
commit 9acb6480ae

View File

@@ -28,7 +28,7 @@ const connectWebSocket = (onMessageReceived) => {
return;
}
const socket = new SockJS(`http://localhost:8082/ws/endpoint`);
const socket = new SockJS(`${import.meta.env.VITE_BACKEND_URL}/ws/endpoint`);
stompClient = Stomp.over(socket);
stompClient.reconnect_delay = 5000;
stompClient.connect({}, (frame) => {