v0.1.1-21
[FEAT] added Codec
with implementations for StringCodec
and JSONCodec
, which take String/Objects and encode/decode to Uint8Arrays. This mechanism enables user code to exercise the encoding/decoding of payloads and indirectly allows a single client to work with Uint8Arrays, JSON or string payloads. This resolves nats-io/nats-clients#1.
[BREAKING] nats client removes the Payload
option, message payloads are always Uint8Array
.