hemera-msgpack

This is a plugin to use Msgpack with Hemera

Usage no npm install needed!

<script type="module">
  import hemeraMsgpack from 'https://cdn.skypack.dev/hemera-msgpack';
</script>

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'))