Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-socket.io-session

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-socket.io-session - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

6

package.json
{
"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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc