I have been checking on the internet for a while and couldn't find an answer to my query...
I am building a web app using java in the server side and plain HTML/javascript on the client side.
My idea is to implement websockets using JSR 356 and need to keep some data (user login details) persistent during the whole session.
QUESTION: Is there a way to How can I keep data persistent during the whole session so I don't need to send it again on each call (something similar to jsp/servlet EL)?
e.g.
${sessionScope["userId"]}
thanks