socket.io-emitter
Advanced tools
Comparing version 1.1.0 to 2.0.0
2.0.0 / 2017-01-12 | ||
================== | ||
* [chore] Add MIT License (#46) | ||
* [docs] Add a note about error handling (#45) | ||
* [chore] Bump dependencies and move to msgpack-lite (#44) | ||
* [test] Add newer nodejs versions in Travis configuration (#43) | ||
1.1.0 / 2017-01-12 | ||
@@ -3,0 +11,0 @@ ================== |
@@ -9,3 +9,3 @@ | ||
var hasBin = require('has-binary'); | ||
var msgpack = require('msgpack-js'); | ||
var msgpack = require('msgpack-lite'); | ||
var debug = require('debug')('socket.io-emitter'); | ||
@@ -12,0 +12,0 @@ |
{ | ||
"name": "socket.io-emitter", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "", | ||
"license": "MIT", | ||
"repository": { | ||
@@ -13,15 +14,15 @@ "type": "git", | ||
"dependencies": { | ||
"debug": "2.2.0", | ||
"redis": "2.4.2", | ||
"msgpack-js": "0.3.0", | ||
"debug": "2.3.3", | ||
"redis": "2.6.3", | ||
"msgpack-lite": "0.1.26", | ||
"has-binary": "0.1.7", | ||
"socket.io-parser": "2.2.6" | ||
"socket.io-parser": "2.3.2" | ||
}, | ||
"devDependencies": { | ||
"mocha": "2.3.4", | ||
"expect.js": "0.3.1", | ||
"socket.io": "1.3.7", | ||
"socket.io-client": "1.3.7", | ||
"socket.io-redis": "0.2.0" | ||
"mocha": "~3.2.0", | ||
"expect.js": "~0.3.1", | ||
"socket.io": "~1.7.2", | ||
"socket.io-client": "~1.7.2", | ||
"socket.io-redis": "~3.0.0" | ||
} | ||
} |
@@ -22,3 +22,3 @@ | ||
//1. Initialize with host:port string | ||
var io = require('socket.io-emitter')("loaclhost:6379") | ||
var io = require('socket.io-emitter')("localhost:6379") | ||
// 2. Initlize with host, port object. | ||
@@ -47,2 +47,16 @@ var io = require('socket.io-emitter')({ host: '127.0.0.1', port: 6379 }); | ||
## Error handling | ||
Access the `redis` to subscribe to its `error` event: | ||
```js | ||
var emitter = require('socket.io-emitter')("localhost:6379"); | ||
emitter.redis.on('error', onError); | ||
function onError(err){ | ||
console.log(err); | ||
} | ||
``` | ||
## API | ||
@@ -49,0 +63,0 @@ |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
13270
9
0
99
1
+ Addedmsgpack-lite@0.1.26
+ Addedcomponent-emitter@1.2.1(transitive)
+ Addeddebug@2.3.3(transitive)
+ Addedevent-lite@0.1.3(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedint64-buffer@0.1.10(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedms@0.7.2(transitive)
+ Addedmsgpack-lite@0.1.26(transitive)
+ Addedredis@2.6.3(transitive)
+ Addedredis-parser@2.6.0(transitive)
+ Addedsocket.io-parser@2.3.2(transitive)
- Removedmsgpack-js@0.3.0
- Removedbase64-js@0.0.2(transitive)
- Removedbenchmark@1.0.0(transitive)
- Removedbops@0.0.7(transitive)
- Removedcomponent-emitter@1.1.2(transitive)
- Removeddebug@2.2.0(transitive)
- Removedms@0.7.1(transitive)
- Removedmsgpack-js@0.3.0(transitive)
- Removedredis@2.4.2(transitive)
- Removedsocket.io-parser@2.2.6(transitive)
- Removedto-utf8@0.0.1(transitive)
Updateddebug@2.3.3
Updatedredis@2.6.3
Updatedsocket.io-parser@2.3.2