View Source Buzzword.Bingo.LiveWeb.GamePresence (Buzzword Bingo Live v0.1.16)
Link to this section Summary
Link to this section Types
@type player() :: %{name: Buzzword.Bingo.Player.name(), meta: map()}
Link to this section Functions
@spec assign_players(Phoenix.LiveView.Socket.t(), %{ joins: Phoenix.Presence.presences(), leaves: Phoenix.Presence.presences() }) :: Phoenix.LiveView.Socket.t()
@spec list(Phoenix.Presence.topic()) :: [player()]
@spec update( Phoenix.Presence.topic(), Buzzword.Bingo.Player.name(), Buzzword.Bingo.Summary.scores() ) :: {:ok, ref :: binary()} | {:error, reason :: term()}