@dashersw/axon
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -8,2 +8,3 @@ | ||
var slice = require('../utils').slice; | ||
var queue = require('../plugins/queue'); | ||
@@ -24,2 +25,5 @@ /** | ||
Socket.call(this); | ||
this.ready = false; | ||
this.use(queue()); | ||
} | ||
@@ -45,2 +49,4 @@ | ||
if (!this.ready) return this.enqueue(slice(arguments)); | ||
var buf = this.pack(arguments); | ||
@@ -55,1 +61,11 @@ | ||
}; | ||
PubSocket.prototype.bind = function() { | ||
var self = this; | ||
Socket.prototype.bind.apply(this, arguments); | ||
this.on('bind', function() { | ||
self.ready = true; | ||
}); | ||
} |
{ | ||
"name": "@dashersw/axon", | ||
"description": "High-level messaging & socket patterns implemented in pure js", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -30,3 +30,3 @@ "dependencies": { | ||
"engines": { | ||
"node": "0.10.x || 0.11.x" | ||
"node": ">= 0.11.8" | ||
}, | ||
@@ -33,0 +33,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
1030
38841
23