Phi*_*ren 26 channel elixir phoenix-framework
有没有办法从该频道外部向频道广播消息?
也许是这样的Channel.broadcast topic, event, data
?
我在这里看到了类似的东西但是Phoenix.Channel.broadcast/3
(截至今天)的最终版本采用了一个隐含通道和主题的套接字.
man*_*all 58
你可以用MyApp.Endpoint.broadcast(topic, event, msg)
它.
检查http://hexdocs.pm/phoenix/Phoenix.Endpoint.html
归档时间: |
|
查看次数: |
8425 次 |
最近记录: |