hemera-msgpack

This is a plugin to use Msgpack with Hemera

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
hemera-msgpack
805206.0.25 years ago7 years agoMinified + gzip package size for hemera-msgpack in KB

Readme

Hemera-msgpack package
npm styled with prettier
This is a plugin to use Mspack with Hemera.
MessagePack is an efficient binary serialization format. It lets you exchange data among multiple languages like JSON. But it's faster and smaller. Small integers are encoded into a single byte, and typical short strings require only one extra byte in addition to the strings themselves.

Usage

// Use NATS driver >= 0.7.2
const nats = require('nats').connect({
  preserveBuffers: true
})
const hemera = new Hemera(nats)
hemera.use(require('hemera-msgpack'))