Hello guys so am using javalin(uses jetty) and trying to get HttpSession but it returns null always! is there any better way i can get HttpSession in websockets without context?
app.ws("/console",webSocketHandler -> {
webSocketHandler.onConnect(wsSession -> {
System.out.println(wsSession.getLocalAddress().getHostString() + " is Now Connected!");wsSession.send("ge");
});
webSocketHandler.onMessage((wsSession, s) -> {
System.out.println((wsSession().getUpgradeRequest().getSession() == null)+"");
});