Socket
Socket
Sign inDemoInstall

socket.io-emitter

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socket.io-emitter - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

LICENSE

8

History.md
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 @@ ==================

2

index.js

@@ -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

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