S
S
squadbrodyaga2020-10-30 11:01:25
Node.js
squadbrodyaga, 2020-10-30 11:01:25

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 question

Ask a Question

731 491 924 answers to any question