Closed thapar closed 12 years ago
client side (sockjs) code provides session id, we cant control this in pyramid_sockjs. but you can create new session class (inherit from ChatSession) and implement custom id in it
Does that mean I have to rename the session id
in ChatSession
view?
If within your example ( https://github.com/fafhrd91/pyramid_sockjs/blob/master/examples/chat.py ) I wanted to use
self.request.user.username
to create a session with a particularid
, where in that example would that be done? Within theadd_sockjs_route(session=ChatSession('here'))
or somewhere else (preferrably within the ChatSession class definition itself)?