Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
572 views

long-running applications and socket.io

I have a web application that accepts an input from the client (browser) and calls an application at the server side with the input. The problem is that the application will run for a long time (about ...
Jane's user avatar
  • 5
2 votes
1 answer
1k views

Error while using express-session and express-socket.io-session NodeJs

I'm using nodejs express-session and express-socket.io-session, the problem is that when I run my server.js , there are some errors: express-session deprecated undefined resave option; provide resave ...
Aalksv's user avatar
  • 103
0 votes
0 answers
340 views

express-session session is not consistent

In my project i am using nodejs (express), react js and socket.io to develop a chatting application. But i am not able to get "correct sessionid" inside my socket function (io.use). In server.js ...
abhilash's user avatar
1 vote
1 answer
381 views

Can't share socket session between express and socket.io

I'm trying to share an express-session with socket.io session but am not able to access the saved session variables from my express routes. I'm using express-socket.io-session to share the session. ...
Himmel's user avatar
  • 3,709
1 vote
2 answers
821 views

Node.js/Express - how to access session data through method(using sockets)?

I've stored some Oauth data in session, and now I'd like to access it again, so I created a local API endpoint to feed that access token. It appears that if I make that request via a method though, it ...
Jordan Ratanadawong's user avatar
1 vote
0 answers
102 views

NodeJS and Socket.io session handling

I'm currently trying to set a session (req.session.username) inside a socket.io connection however it will set it but when I refresh and log out the req.session.username, it logs undefined. I have my ...
CharlieJ's user avatar
1 vote
0 answers
39 views

Trouble getting the correct session data in socket.io from passport

So I followed the first answer here - How to use passport with express and socket.io? And right now I can do socket.request.session.user and it returns me the id of the user. But that's it.. nothing ...
joe's user avatar
  • 1,703
5 votes
1 answer
3k views

socket.io session does not update when req.session changes

I am currently working on a basic app where a user needs to authenticate (with passportJS) and then send a message to my server with socket.io. Here is the nodeJS code: var express = require('express'...
achauchet's user avatar
0 votes
1 answer
1k views

NODE JS Socket IO: req, res

I use node js and socket io on my website and i have a problem, i want to connect my client on my website when my "client.on('Connexion', function(data) { } " is called, and i have a problem : /* ...
Pichon's user avatar
  • 17
0 votes
1 answer
461 views

express-socket.io-session session variables are not available

I am using express-socket.io-session module https://github.com/oskosk/express-socket.io-session I can see the session data on socket.handshake { headers: { host: 'xxxxxxx:8000', connection:...
Aravind Srivatsan's user avatar
1 vote
0 answers
127 views

Update express session through socket.io

I have a Node.js server using express framework with a session system. The program is a simple 1vs1 game. In order to play, a user can create a room and an other user can join it so the game can start....
Victor T.'s user avatar
  • 350
2 votes
2 answers
2k views

Getting rid of session and socket pooling sailsjs

Hi I am current working on my rest api app using sails. I was reading the following article http://engineering.linkedin.com/nodejs/blazing-fast-nodejs-10-performance-tips-linkedin-mobile In point 2 ...
Muhammad Raihan Muhaimin's user avatar
-1 votes
2 answers
164 views

Cannot access io object in session.socket.io

I am using session.socket.io for my app o = require('socket.io').listen(tmpServer), appCookieParser = express.cookieParser(settings.cookie.secret), appRedisStore = new RedisStore(), sessionIO = new ...
Pio's user avatar
  • 4,064
12 votes
2 answers
17k views

How to access express.session.MemoryStore via socket.io objects?

I am doing this in a login function app.post('/teacherlogin', function(request, response) { var username = request.body.username; var password = request.body.password; con.query('SELECT ...
newbie's user avatar
  • 253