Move msg pack node to more supported lib msgpack-lite

This commit is contained in:
Dave Conway-Jones
2017-08-09 16:58:15 +01:00
parent dbff575e24
commit 7950b7d39a
6 changed files with 21 additions and 9 deletions

View File

@@ -10,11 +10,19 @@ Run the following command in your Node-RED user directory - typically `~/.node-r
npm install node-red-node-msgpack
Changes
-------
Version 1.0.0 - move to msgpack-lite library (more supported and faster) - This uses the more
recent msgpack specification so please ensure all your endpoints are also using the latest spec.
Usage
-----
Uses the <a href="https://www.npmjs.org/package/msgpack">msgpack npm</a> to pack and unpack msg.payload objects to <a href="http://msgpack.org/">msgpack</a> format buffers.
Uses the <a href="https://www.npmjs.org/package/msgpack-lite">msgpack-lite npm</a> to pack and unpack msg.payload objects to <a href="http://msgpack.org/">msgpack</a> format buffers.
**Note**: this node does not currently encode raw <code>buffer</code> types.
It will automatically try to *decode* any buffer received, and may not cause an error.
If the input is NOT a buffer it converts it into a msgpack buffer.