From 97f243005563d6a2b159e27beb658794481412cf Mon Sep 17 00:00:00 2001 From: Mike Tyranski Date: Thu, 2 Jan 2020 21:55:41 -0800 Subject: [PATCH] Wrap data in a "messages" array to align with scc-broker-client implementation --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 0c25c00..8619c4b 100644 --- a/index.js +++ b/index.js @@ -74,7 +74,9 @@ module.exports.attach = function (broker, options) { } else { data = message.slice(2); } - broker.publish(channel, data); + broker.publish(channel, { + messages: [data] + }); } }); }; \ No newline at end of file