Phoenix v1.3.4 Phoenix.Socket.Broadcast View Source

Defines a message sent from pubsub to channels and vice-versa.

The message format requires the following keys:

  • topic - The string topic or topic:subtopic pair namespace, for example “messages”, “messages:123”
  • event- The string event name, for example “phx_join”
  • payload - The message payload

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %Phoenix.Socket.Broadcast{event: term(), payload: term(), topic: term()}