express-socket.io-session
express-socket.io-session copied to clipboard
this throws undifine on namespaces
but works good on the main one ..
if i use namespace
/mnt/c/webserver/cbox/server/node_modules/cookie-parser/index.js:25 if (req.cookies) return next();
TypeError: Cannot read property 'cookies' of undefined
never-mind i got it working..
btw how do i access this socket.handshake.session.user to my namespace .. namespaces session only reads the data on its own socket ... it means socket.handshake.session.user this from main are undefined in namespace i need to put value in it .. i jsut wanna know how to access globally all the session
I'am also having the same question! /(ㄒoㄒ)/~~