Created
May 22, 2017 14:29
-
-
Save jmolero/36732d9a8d5b127ae01a9d2dad6e6c42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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