From f22fd04137dc28b538688b45bc30c159cbd8693e Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Fri, 14 Feb 2025 12:04:47 +0100 Subject: [PATCH] - sockjs config updated; --- src/components/NotificationsSidebar/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/NotificationsSidebar/index.js b/src/components/NotificationsSidebar/index.js index 91555de..8d5e7b3 100644 --- a/src/components/NotificationsSidebar/index.js +++ b/src/components/NotificationsSidebar/index.js @@ -203,7 +203,14 @@ const NotificationsSidebar = () => { } 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.configure({