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

express.oi

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express.oi - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

7

lib/index.js

@@ -11,2 +11,3 @@ 'use strict';

var expressSession = require('express-session');
var SharedSession = require("express-socket.io-session");
var io = require('socket.io');

@@ -16,3 +17,2 @@

var IoResponse = require('./response');
var socketSession = require('./session');

@@ -84,4 +84,5 @@ delete express.session;

this.use(express.session(options));
this.io.use(socketSession(options));
var session = express.session(options);
this.use(session);
this.io.use(new SharedSession(session,{autoSave:true}));
}.bind(this);

@@ -88,0 +89,0 @@

@@ -12,8 +12,8 @@ 'use strict';

this.socket = socket;
this.session = socket.session;
this.handshake = socket.handshake;
this.session = socket.handshake.session;
var req = socket.client.request;
this.sessionID = req.sessionID;
this.sessionID = socket.handshake.sessionID;
this.headers = req.headers;

@@ -20,0 +20,0 @@ this.query = req._query;

{
"name": "express.oi",
"version": "0.0.19",
"version": "0.0.20",
"description": "Realtime-web library, based on express and socket.io",

@@ -21,10 +21,11 @@ "keywords": [

"dependencies": {
"async": "^1.0.0",
"cookie-parser": "^1.3.5",
"express": "^4.12.3",
"express-session": "~1.11.2",
"lodash": "^3.9.1",
"socket.io": "^1.3.5"
"async": "^1.5.0",
"cookie-parser": "^1.4.0",
"express": "^4.13.3",
"express-session": "^1.12.1",
"express-socket.io-session": "^1.3.1",
"lodash": "^3.10.1",
"socket.io": "^1.3.7"
},
"main": "lib/index.js"
}
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