express-socket.io-session
express-socket.io-session copied to clipboard
Share a cookie-based express-session middleware with socket.io
I'm trying to bypass the middleware for a specific event but can't figure it out. I've tried adding the listener before the middleware declaration like one would do in ExpressJS...
## The devDependency [eslint](https://github.com/eslint/eslint) was updated from `5.16.0` to `6.0.0`. This version is **not covered** by your **current version range**. If you don’t accept this pull request, your project will...
> Note Since version 1.5.0, the cookie-parser middleware no longer needs to be used for this module to work. This module now directly reads and writes cookies on req/res. Using...
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.
@oskosk ```LOG /var/website/node_modules/express-socket.io-session/index.js:96 return originalId === sess.id && savedHash === hash(sess); ^ TypeError: Cannot read property 'id' of undefined at isSaved (/var/website/node_modules/express-socket.io-session/index.js:96:30) at shouldSave (/var/website/node_modules/express-socket.io-session/index.js:112:8) at /var/website/node_modules/express-socket.io-session/index.js:66:10 at _combinedTickCallback (internal/process/next_tick.js:73:7)...
Maybe that's intentional, maybe not, but I need to access session data in the disconnect event. Is that possible?
## Version **3.2.0** of **debug** was just published. Dependency debug Current Version 3.1.0 Type dependency The version **3.2.0** is **not covered** by your **current version range**. If you don’t accept...
Could someone give me a hint about this? ``` javascript url.js:73 throw new TypeError("Parameter 'url' must be a string, not " + typeof url); ^ TypeError: Parameter 'url' must be...
**EDIT by the module's author**: _The author of this issue makes a point somehow but the StackOverflow reference they left here is older than this module. Please, continue reading and...