switching from JSON to MsgPack in a backwards compatible manner with Paho MQTT (JavaScript)

picockpit.com makes heavy use of MQTT. For the upcoming version 2.0 I have decided to switch it to MsgPack.Why MsgPack?MsgPack (actually called MessagePack – packages tend to use MsgPack) is a binary format, aimed at compatibility with JSON, but decreasing file size (which is good for saving bandwidth & server resources).Another advantage: MessagePack allows you [...]