Trying to create a custom Websocket server with Spring 5

Hi,
I have an issue settin up my own websocket handler. I have added Websocket configuration using Spring WebSocketConfigurer. It has a handler to path (‘/notifications’)

I also created a new DispatcherServlet WebSocketDispatcherServlet & registered it using Servlet registration . The custom servlet is mapped to /ws/*. With this, the servlet can be accessed by http://localhost:8080/app/ws/ since all the code is in the app(web) module

However, our custom client is unable to connect to it using ws://localhost:8080/app/ws/notifications. It throws back the error
"for(;;);[{"changes":{},"resources":{},"locales":{},"meta":{"appError":{"caption":"Communication problem","url":null,"message":"Pay attention to any unsaved data, and <u>click here</u> to continue.","details":null}},"syncId":-1}]"

from what I read in the forum, this seems to be Atmosphere websocket response that Vaadin uses

My question is why is not trying to connect to my new websocket handler based on my configuration. What else do I need to do here ?

Cheers, Ram

2 Likes