W
W
Wasya UK2016-12-28 16:43:35
Node.js
Wasya UK, 2016-12-28 16:43:35

Where can one learn how to use socket.io along with visitor sessions ('authorization')?

I'm still learning node, but I can't find anywhere how to properly attach autorization to chat and how to use sessionID. A lot of information is outdated.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
catHD, 2016-12-30
@dmc1989

https://www.npmjs.com/package/express-socket.io-session
But there is an easier option.. hack... use express's session as middle in socket.io and that's it :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question