451 B · text History 44bc4f7
defmodule CartosnapAppWeb.Presence do
  @moduledoc """
  Who is looking at a shared trip (`CartosnapAppWeb.ShareLive`), tracked on
  `CartosnapApp.Trips.share_topic/1`. Each viewer's meta says who they are
  (`name`, `color`), whether they're the trip's owner (`host`) and which
  photo they're on (`at`); the host's `at` is what followers follow.
  """

  use Phoenix.Presence,
    otp_app: :cartosnap_app,
    pubsub_server: CartosnapApp.PubSub
end