In my usage, I need to retrieve loggedin user from session when websocket connecting. However the req param passed into onaccept callback has no session context. I had tried making a local modification according to how a request was manipulated in general case, it seems working as my expectation. I'm not professional on http stuffs, not sure if the missed contexts in websocket request is desired or not. Just FYI, your call to decide if this is a bug need to be fixed.
In my usage, I need to retrieve loggedin user from session when websocket connecting. However the
req
param passed intoonaccept
callback has no session context. I had tried making a local modification according to how a request was manipulated in general case, it seems working as my expectation. I'm not professional on http stuffs, not sure if the missed contexts in websocket request is desired or not. Just FYI, your call to decide if this is a bug need to be fixed.http_connection.h:134