Navigation Menu

Skip to content

Commit

Permalink
[feat] Remove the socket.io-parser dependency (#47)
Browse files Browse the repository at this point in the history
That will allow to use a custom parser (see socketio/socket.io#2829).
  • Loading branch information
darrachequesne committed Feb 16, 2017
1 parent fd086d7 commit 40764bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions index.js
Expand Up @@ -4,7 +4,6 @@
*/

var Emitter = require('events').EventEmitter;
var parser = require('socket.io-parser');

/**
* Module exports.
Expand All @@ -23,7 +22,7 @@ function Adapter(nsp){
this.nsp = nsp;
this.rooms = {};
this.sids = {};
this.encoder = new parser.Encoder();
this.encoder = nsp.server.encoder;
}

/**
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -8,7 +8,6 @@
},
"description": "",
"dependencies": {
"debug": "2.3.3",
"socket.io-parser": "2.3.1"
"debug": "2.3.3"
}
}

0 comments on commit 40764bb

Please sign in to comment.