passport-socket.io | allowing socket.io access | Runtime Evironment library
kandi X-RAY | passport-socket.io Summary
kandi X-RAY | passport-socket.io Summary
allowing socket.io access to the passportJS user session
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of passport-socket.io
passport-socket.io Key Features
passport-socket.io Examples and Code Snippets
Community Discussions
Trending Discussions on passport-socket.io
QUESTION
i am finish sessionStore
with MongoStore
every login is being performed correctly and sessions are being written to the database without errors. I am using this package github.com/jfromaniello/passport.socketio to align the passport with socket io but I have already looked for several places about how after login make the treatment of the sessionStorage
so it lists which users with names are online and offline, Could show me a light on this?
app.js
...ANSWER
Answered 2018-Feb-20 at 10:49You can track connection, disconnect, login and logout events to create a list of online users. You can manage online users in RAM or you can use redis for that. Following code snippet may help you achieve your goal -
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install passport-socket.io
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page