feat: expose CRUD, onboarding, pubsub via web

This commit is contained in:
2026-04-22 16:32:41 +02:00
parent 9807331da4
commit 9389c32244
33 changed files with 1536 additions and 7 deletions
+4 -5
View File
@@ -81,10 +81,9 @@ defmodule Localiser.Localisation.Room.Server do
def handle_info(_msg, state), do: {:noreply, state}
defp broadcast(room_id, occupants) do
Phoenix.PubSub.broadcast(
@pubsub,
"room:#{room_id}",
{:room_occupancy_changed, room_id, occupants}
)
msg = {:room_occupancy_changed, room_id, occupants}
Phoenix.PubSub.broadcast(@pubsub, "room:#{room_id}", msg)
Phoenix.PubSub.broadcast(@pubsub, "rooms:occupancy", msg)
end
end