Phoenix.Socket.Broadcast

Phoenix.Socket.Broadcast

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 :: %Phoenix.Socket.Broadcast{event: term, payload: term, topic: term}

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部