Open georgyfarniev opened 5 years ago
Hello, I'm using socket.io and koa-session. How can I get user session information (same as ctx.state.user in koa middleware) in socket context, where I have only cookie session id?
@georgyfarniev It's an old issue but for anyone seeing it, I use this module: https://github.com/Dongss/koa-socketio-session
Hello, I'm using socket.io and koa-session. How can I get user session information (same as ctx.state.user in koa middleware) in socket context, where I have only cookie session id?