Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get user session data manually for socket.io? #166

Open
georgyfarniev opened this issue Feb 19, 2019 · 1 comment
Open

How to get user session data manually for socket.io? #166

georgyfarniev opened this issue Feb 19, 2019 · 1 comment

Comments

@georgyfarniev
Copy link

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?

@AoDev
Copy link

AoDev commented Sep 28, 2020

@georgyfarniev It's an old issue but for anyone seeing it, I use this module: https://github.com/Dongss/koa-socketio-session

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants