- sockjs config updated;

This commit is contained in:
Vitalii Kiiko
2025-02-14 12:04:47 +01:00
parent 0211df0329
commit f22fd04137

View File

@@ -203,7 +203,14 @@ const NotificationsSidebar = () => {
} }
const connectWebSocket = () => { const connectWebSocket = () => {
socket.current = new SockJS(socketUrl); socket.current = new SockJS(socketUrl, null, {
transports: [
'websocket',
'xhr-streaming',
'xhr-polling'
]
}
);
stomp.current = Stomp.over(socket.current); stomp.current = Stomp.over(socket.current);
stomp.current.configure({ stomp.current.configure({