express-socket.io-session icon indicating copy to clipboard operation
express-socket.io-session copied to clipboard

this throws undifine on namespaces

Open gurachan opened this issue 7 years ago • 2 comments

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

gurachan avatar May 01 '17 15:05 gurachan

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

gurachan avatar May 01 '17 17:05 gurachan

I'am also having the same question! /(ㄒoㄒ)/~~

uselessaddress avatar Oct 24 '17 13:10 uselessaddress