Questions tagged [session.socket.io]
7 questions
3
votes
1 answer
session is undefined using sesssion.socket.io-express4
I'm working on a NodeJs with the following modules:
express 4.9.8
express-session 1.9.3
socket.io 1.2.1
session.socket.io-express4 0.0.3
I'm trying to get a session from session.socket.io-express4 in app.js using the following code:
first the init…

ufk
- 30,912
- 70
- 235
- 386
2
votes
1 answer
socket.io ensure state on client reconnection
I am currently working on a project with socket.io, and i'm not sure to fully understand the mechanism of reconnection.
Since a disconnection could happen client side, i would like to know how to maintain the state of the socket on the server. I…

William Poussier
- 1,628
- 5
- 20
- 30
1
vote
1 answer
PHP Warning: PHP Startup: Unable to load dynamic library 'session.so'
I run a php -v script and get this error:
not found this session.so
How to install this module?
PHP Warning: PHP Startup: Unable to load dynamic library 'session.so' (tried: /usr/lib/php/20170718/session.so (/usr/lib/php/20170718/session.so: cannot…

enottrue
- 11
- 2
0
votes
1 answer
how we can define an instance which make new connection in socket.io?
we use var abc = new WebSocket(url) to connect make new connection in websocket so in socket.io what we used to connect it or how can i do it please answer.

Abhishek Kumar
- 11
- 2
0
votes
0 answers
Socket.io produces random sockets for one session?
I'm trying to build a private messaging app using socket.io. My assumption was that per session there would only ever be one socket.id. If i keep track of my socket.id and console.log it, it's constantly chnaging and I dont know why.
Here a snippet…

Phil Dimeski
- 41
- 1
- 7
0
votes
0 answers
socket.emit is not working in session.socket.io
I am trying to create simple chat application using session.socket.io and rabbitMQ and redis for session storage.
app.js
var express = require('express'),
http = require('http'),
path = require('path'),
redis =…

Rhushikesh
- 3,630
- 8
- 45
- 82
0
votes
1 answer
nkzawa socket.io java client connection not upgrading to websocket when hitting haproxy(loadbalancer) in front of two socketio servers
I have two socketio servers behind haproxy, and for the purpose of stickiness i am inserting the cookie at haproxy, to identify the server from which response came from. Now the problem is, when i do so using the code below, my connection is not…

vishal
- 29
- 2