Comparing version 0.0.7 to 0.0.8
11
index.js
@@ -6,3 +6,3 @@ // Generated by CoffeeScript 1.10.0 | ||
module.exports = function(sock, cb) { | ||
var notify, rds, t; | ||
var notify, rds, route, t; | ||
t = null; | ||
@@ -17,2 +17,3 @@ notify = {}; | ||
rds = {}; | ||
route = null; | ||
sock.onmessage = function(m) { | ||
@@ -36,2 +37,10 @@ var r; | ||
} | ||
if (q.route) { | ||
if (q.route === route) { | ||
return; | ||
} else { | ||
rds = {}; | ||
route = q.route; | ||
} | ||
} | ||
sock.send(JSON.stringify(q)); | ||
@@ -38,0 +47,0 @@ return this; |
{ | ||
"name": "rds-client", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "ride data store client lib", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
4112
75