
For me the most important distinction is MyApp.Endpoint.broadcast couples the invocation to *_web part of the app, and Phoenix.PubSub.broadcast doesn’t.

For me the most important distinction is MyApp.Endpoint.broadcast couples the invocation to *_web part of the app, and Phoenix.PubSub.broadcast doesn’t.