ChannelClient.Formats.JSON (channel_client v0.1.0)

Copy Markdown

Phoenix Channels JSON format (the default).

Wraps the protocol v1/v2 frame shapes together with any JSON library implementing encode!/1 and decode!/1.

Options

  • :version - "2.0.0" (default, JSON arrays) or "1.0.0" (JSON objects)
  • :json_library - defaults to Jason; :serializer accepted as an alias

These options are derived automatically from the socket's legacy :vsn / :json_library / :serializer options when no explicit :format is given.