gossip v1.4.0 Gossip.Client.Players behaviour View Source

Callbacks for the "players" flag

Link to this section Summary

Callbacks

A player has signed in

A player has signed out

Player status update

Link to this section Callbacks

Link to this callback

player_sign_in(arg1, arg2)

View Source
player_sign_in(Gossip.game_name(), Gossip.player_name()) :: :ok

A player has signed in

Link to this callback

player_sign_out(arg1, arg2)

View Source
player_sign_out(Gossip.game_name(), Gossip.player_name()) :: :ok

A player has signed out

Link to this callback

player_update(arg1, list)

View Source
player_update(Gossip.game_name(), [Gossip.player_name()]) :: :ok

Player status update

You will receive this callback anytime a players/status event is sent. These are sent after calling Gossip.fetch_players/0 and periodically updated from the local player cache, Gossip.Players.