-
Notifications
You must be signed in to change notification settings - Fork 119
Update, from msgpack-lite to notepack.io (support new version of soc… #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…eti.io-redis) Fix, removed old namespace tag Update dependencies
darrachequesne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for the pull request 👍
Before merging, could you please:
- remove nodejs 0.10 and 0.12 from travis configuration
- remove the hasBin check (and the has-binary dependency) (related: socketio/socket.io#2923)
index.js
Outdated
| if (opts.rooms && opts.rooms.length) { | ||
| opts.rooms.forEach(function(room) { | ||
| var chnRoom = chn + room + '#'; | ||
| var chnRoom = chn + room; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please update this part, to match https://github.com/socketio/socket.io-redis/blob/5.0.0/index.js#L407 (related: socketio/socket.io-redis-adapter#151)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
index.js
Outdated
| var parser = require('socket.io-parser'); | ||
| var hasBin = require('has-binary'); | ||
| var msgpack = require('msgpack-lite'); | ||
| var notepack = require('notepack.io'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since notepack is just another msgpack implementation, how about keeping the var msgpack here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a wise choice! like socket.io-redis (https://github.com/socketio/socket.io-redis/blob/master/index.js#L8)
Removed, hasBinary package. Fix, socketIo multiroom event.
|
@v4l3r10 great, thanks! |
…keti.io-redis)
Fix, removed old namespace tag
Update dependencies