limitd-client
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -14,5 +14,3 @@ var url = require('url'); | ||
var encoder = require('pb-stream').encoder; | ||
var ResponseDecoder = decoder(ResponseMessage); | ||
var DEFAULT_PORT = 9231; | ||
@@ -42,4 +40,3 @@ var DEFAULT_HOST = 'localhost'; | ||
this.socket = reconnect(function (stream) { | ||
stream.pipe(ResponseDecoder).on('data', function (response) { | ||
stream.pipe(decoder(ResponseMessage)).on('data', function (response) { | ||
client.emit('response', response); | ||
@@ -46,0 +43,0 @@ client.emit('response_' + response.request_id, response); |
{ | ||
"name": "limitd-client", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "limitd client for node.js", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "mocha --timeout 6000" | ||
}, | ||
@@ -31,2 +31,2 @@ "author": "José F. Romaniello <jfromaniello@gmail.com> (http://joseoncode.com)", | ||
} | ||
} | ||
} |
@@ -16,2 +16,3 @@ [![Build Status](https://travis-ci.org/auth0/limitd.svg)](https://travis-ci.org/limitd/node-client) | ||
```javascript | ||
var LimitdClient = require('limitd-client'); | ||
var limitd = new LimitdClient('limitd://localhost:9001'); | ||
@@ -18,0 +19,0 @@ |
18586
89
254