To give more dynamic for my app I need to send some additional information at the moment client connect to server through websocket.
So the URL will be like :
ws://localhost:" + PORT + "/hola1?param1=value1¶m2=value2
There is no limit of parameters for that moment of time.
To use this parameters : they will be added to header as key/value and send with onOpen event.
1) create map when service method is called at WebsocketConsumer such as this.queryMap = getQueryMap(request.getQueryString());
2) add them to header when sendEventNotification triggered :
for (Map.Entry<String, String> param : queryMap.entrySet())