> So, the question is is Xitrum API will support that - reading session id
> and recovering session variable for id?
About session, in Xitrum it does not have id. It is a mutable (so that
you can modify the session) Map[String, Any]. It only has data.
About SockJS handler, its interface:
def onOpen()
def onMessage(message: String)
def onClose()
Thus as mentioned in my last post, in a SockJS handler you don't have
session info. So currently you have to pass whatever info you want
from the browser to the handler through the "onMessage" method. You
can encrypt (sign) the info to prevent hacker to mess with it.
In the next version of Xitrum, I'm thinking of changing the SockJS
handler interface to:
def onOpen(session: immutable Map[String, Any])
def onMessage(message: String)
def onClose()