express-socket.io-session
Advanced tools
Comparing version 1.3.1 to 1.3.2
{ | ||
"name": "express-socket.io-session", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Share a cookie-based express-session middleware with socket.io", | ||
@@ -21,3 +21,3 @@ "main": "index.js", | ||
], | ||
"author": "osk <oscar@shovelapps.com> (http://shovelapps.com/)", | ||
"author": "osk <oskosk@gmail.com>", | ||
"license": "MIT", | ||
@@ -27,4 +27,4 @@ "dependencies": { | ||
"crc": "^3.3.0", | ||
"debug": "~2.1.0" | ||
"debug": "~2.6.0" | ||
} | ||
} |
@@ -46,3 +46,3 @@ express-socket.io-session | ||
// Use express-session middleware for express | ||
app.use(session); | ||
app.use(session); | ||
@@ -102,2 +102,3 @@ // Use shared session middleware for socket.io | ||
socket.handshake.session.userdata = userdata; | ||
socket.handshake.session.save(); | ||
}); | ||
@@ -107,2 +108,3 @@ socket.on("logout", function(userdata) { | ||
delete socket.handshake.session.userdata; | ||
socket.handshake.session.save(); | ||
} | ||
@@ -109,0 +111,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17613
164
+ Addeddebug@2.6.9(transitive)
+ Addedms@2.0.0(transitive)
- Removeddebug@2.1.3(transitive)
- Removedms@0.7.0(transitive)
Updateddebug@~2.6.0