Trying pub_sub the first time using Ash, so I could be missing something very simple.
The console shows a debug message like this, but the liveview handle_info isn't triggered. Do I need any other plumbing code than what's shown in the code excerpts below?
[debug] Broadcasting to topics ["items:update:bcb9b300-22b9-474e-8a8a-81473568e438"] via MyAppWeb.Endpoint.broadcastNotification:%Ash.Notifier.Notification{resource: ...
[debug] Broadcasting to topics ["items:update:bcb9b300-22b9-474e-8a8a-81473568e438"] via MyAppWeb.Endpoint.broadcastNotification:%Ash.Notifier.Notification{resource: ...
Here are the relevant codes currently in place. ``` <Liveview> @impl true def handle_info( %Phoenix.Socket.Broadcast{ topic: "items:update:" <> id }, socket ) do IO.inspect(id, "items:update id") ### This doesn't show up in the console.
<Resource> pub_sub do module MyAppWeb.Endpoint prefix "items" broadcast_type :phoenix_broadcast
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.