gossip v1.0.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(arg0, arg1) View Source
player_sign_in(Gossip.game_name(), Gossip.player_name()) :: :ok

A player has signed in

Link to this callback player_sign_out(arg0, arg1) View Source
player_sign_out(Gossip.game_name(), Gossip.player_name()) :: :ok

A player has signed out

Link to this callback player_update(arg0, 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.request_players_online/0 and periodically updated from the local player cache, Gossip.Players.