Is there a way to broadcast a message to a channel from outside that channel?
Maybe something like Channel.broadcast topic, event, data?
Channel.broadcast topic, event, data
I saw s
You can use MyApp.Endpoint.broadcast(topic, event, msg) for that.
MyApp.Endpoint.broadcast(topic, event, msg)
Check http://hexdocs.pm/phoenix/Phoenix.Endpoint.html