Instantly share code, notes, and snippets.

Embed
What would you like to do?
function onConnection(socket) {
console.log("Socket.io session without reload: ", socket.handshake.session);
socket.handshake.session.reload(function(err) {
if (err) { console.log("Error:" + err); }
console.log("Socket.io session: ", socket.handshake.session);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment