oskosk / express-socket.io-session

Share a cookie-based express-session middleware with socket.io
https://www.npmjs.com/package/express-socket.io-session
MIT License
135 stars 14 forks source link

other way to solve this problem #68

Open chenmocoder opened 5 years ago

chenmocoder commented 5 years ago

https://github.com/socketio/socket.io-redis or https://github.com/lklepner/socket.io-adapter-mongo can solve multi servers that use socket.io. use redis or mongo store socket.io's session.

knoxcard commented 5 years ago

I use socket.io-redis with a MariaDB+Redis tech stack, works great! You have to set it up right though ;-)