W3cubDocs

/Phoenix

Phoenix.Socket.Reply

Defines a reply sent from channels to transports.

The message format requires the following keys:

  • topic - The string topic or topic:subtopic pair namespace, for example “messages”, “messages:123”
  • status - The reply status as an atom
  • payload - The reply payload
  • ref - The unique string ref

Summary

Types

t()

Types

t :: %Phoenix.Socket.Reply{payload: term, ref: term, status: term, topic: term}

© 2014 Chris McCord
Licensed under the MIT License.
https://hexdocs.pm/phoenix/Phoenix.Socket.Reply.html