Buzzword Bingo Live
v0.1.1
  • Pages
  • Modules

    View Source Buzzword.Bingo.LiveWeb.GamePresence (Buzzword Bingo Live v0.1.1)

    Link to this section Summary

    Types

    player()

    Functions

    assign_players(socket, diff)
    list(topic)
    update(topic, name, scores)

    Link to this section Types

    Link to this type

    player()

    View Source
    @type player() :: %{name: Buzzword.Bingo.Player.name(), meta: map()}

    Link to this section Functions

    Link to this function

    assign_players(socket, diff)

    View Source
    @spec assign_players(Phoenix.LiveView.Socket.t(), %{
      joins: Phoenix.Presence.presences(),
      leaves: Phoenix.Presence.presences()
    }) :: Phoenix.LiveView.Socket.t()
    Link to this function

    list(topic)

    View Source
    @spec list(Phoenix.Presence.topic()) :: [player()]
    Link to this function

    update(topic, name, scores)

    View Source
    @spec update(
      Phoenix.Presence.topic(),
      Buzzword.Bingo.Player.name(),
      Buzzword.Bingo.Summary.scores()
    ) ::
      {:ok, ref :: binary()} | {:error, reason :: term()}

    Hex Package Hex Preview (current file) Download ePub version

    Built using ExDoc (v0.29.4) for the Elixir programming language