hermes-raw-client
Advanced tools
Comparing version 0.8.3 to 0.8.4
10
index.js
@@ -267,4 +267,5 @@ // | ||
if (flag > 2 && this._throwErrors) { | ||
var msg = "Open Error #" + flag + " " + payload.toString("utf8"); | ||
this.emit("error", new Error(msg)); | ||
var msg = payload.toString("utf8"); | ||
var err = new Error("Signal Error #" + flag + " " + msg); | ||
this.emit("error", new Error(msg), flag, msg); | ||
} else { | ||
@@ -282,4 +283,5 @@ this.emit("open", ch, flag, payload); | ||
if (flag > 1 && this._throwErrors) { | ||
var msg = "Signal Error #" + flag + " " + payload.toString("utf8"); | ||
this.emit("error", new Error(msg)); | ||
var msg = payload.toString("utf8"); | ||
var err = new Error("Signal Error #" + flag + " " + msg); | ||
this.emit("error", new Error(msg), flag, msg); | ||
} else { | ||
@@ -286,0 +288,0 @@ this.emit("signal", ch, flag, payload); |
{ | ||
"name": "hermes-raw-client", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"description": "Stateless Hermes client", | ||
@@ -5,0 +5,0 @@ "keywords": ["hermes", "wink", "comet", "tcp", "messaging"], |
9771
5
267