I'm using Websocket-API based on JavaEE 7, in my application.
I'm required to access the values set in cookies inside my websocket endpoint [Annotated one : @ServerEndpoint ("/websocket") ]
. How would I do that?
@onOpen()
method is there, which will be called automatically when a connection to this websocket endpoint is established. I want to access cookies values in there, inside this method.
I know how to do that in a servlet or JSP, but I'm new to Websockets.
Please help me doing this. Thanks in advance.