10.04.2018 - I solved it. We need to add one servlet filter and add the url pattern same as the websocket serverendpoint. In Servlet filter add the .