A Msgpack based serializer for Phoenix Channels messages.
Msgpack encodes the same messages as the default JSON serializer in fewer
bytes, which is worth having on metered or low bandwidth connections. To use
it, add msgpax to your dependencies:
def deps() do
[
{:msgpax, "~> 2.0"}
]
endand select it in your config:
config :nerves_hub_link,
serializer: :msgpackYour NervesHub server must support Msgpack for this to work. If it doesn't, the device will fail to connect.