gossip v1.0.0 Gossip.Players.Internal View Source

Internal GenServer calls/casts

Link to this section Summary

Functions

Fetch a remote player list from Gossip

Update the local player list after a players/status event comes in

For tests only - resets the player list state

Receive a new “players/status” event from the Gossip socket

A player has signed into a remote game

A player has signed out of a remote game

Link to this section Functions

Link to this function fetch_players(game_name) View Source
fetch_players(Gossip.game_name()) ::
  {:ok, Gossip.Players.status()} | {:error, :offline}

Fetch a remote player list from Gossip

Link to this function player_list(game_name, players) View Source
player_list(Gossip.game_name(), [Gossip.player_name()]) :: :ok

Update the local player list after a players/status event comes in

For tests only - resets the player list state

Receive a new “players/status” event from the Gossip socket

This checks for local calls before maybe updating the local cache

For internal use.

Link to this function sign_in(game_name, player_name) View Source

A player has signed into a remote game

Link to this function sign_out(game_name, player_name) View Source

A player has signed out of a remote game