Answer the question
In order to leave comments, you need to log in
How to get data from session in socket.io?
How to get data from session in socket.io?
I need to get the user login from the session, like this:
const login = req.session.user.login
But as I understand it, req does not work in socket.io, so I want to know how to do it
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question