2

Unfortunately socket.io developer team decided to deprecate functions set() and get(). The problem is that these two functions allowed us to save variable into session.

So my question is : What is the equivalent of the folloing code on socket.io 1.0.5 ?

socket.set('mySessionVar', 'myValue');

socket.get('mySessionVar', function (error, mySessionVar) {
    console.log('I have a super variable save in the session : '+mySessionVar);
    socket.emit('mySessionVar', mySessionVar);
});

Thank you for your help,
Guillaume.