From 4b7d7e9787e8f239d6439fd3d542a660ca498135 Mon Sep 17 00:00:00 2001 From: Vladimir Dronnikov Date: Mon, 16 Jan 2012 12:52:23 -0500 Subject: [PATCH] we coerce data to string --- lib/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parser.js b/lib/parser.js index be39d9c46..c486219f6 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -39,7 +39,7 @@ exports.encodePacket = function (packet) { // data fragment is optional if (undefined !== packet.data) { - encoded += packet.data; + encoded += String(packet.data); } return '' + encoded;