Spec-Zone.ru › Phoenix

Phoenix.Socket.Broadcast

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

Summary

Types

t()

Types

t()Source

@type t() :: %Phoenix.Socket.Broadcast{event: term(), payload: term(), topic: term()}

Hex Package Hex Preview Download ePub version

Built using ExDoc (v0.40.3) for the Elixir programming language

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API