How to get user session data manually for socket.io?
Open
- Dominant language
- TypeScript
- Stars
- 908
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Research direction
No repository file or test is named. Start by reviewing the session middleware's documented context behavior and how the socket.io integration is expected to access it; done requires a clear, supported answer for retrieving user session data from the socket context when only the session cookie is available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100