ChannelClient. Message. V1
(channel_client v0.1.0)
Copy Markdown
Phoenix Channels protocol 1.0.0 serializer.
Messages are JSON objects with string keys:
%{"ref" => "1", "topic" => "rooms:lobby", "event" => "new:msg", "payload" => %{}}
Summary
Functions
@spec decode!(term()) :: ChannelClient.Message.t()
@spec encode!(ChannelClient.Message.t()) :: map()