Bind the session with the the uid.
User id
Closed callback for the session which would disconnect client in next tick.
Get value from the session.
session key
value associated with session key
Remove value from the session.
session key
Send message to the session.
final message sent to client
Send message to the session in batch.
list of message
Set values (one or many) for the session.
Unbind the session with the the uid.
User id
Session maintains the relationship between client connection and user information. There is a session associated with each client connection. And it should bind to a user id after the client passes the identification.
Session is created in frontend server and should not be accessed in handler. There is a proxy class called BackendSession in backend servers and FrontendSession in frontend servers.