websocket url modified
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user