Who comes and goes in every world on the node, told to whoever asks.
Cauldron2D.World.Presence.subscribe()
receive do
{:cauldron_players, world, :joined, id} -> ...
{:cauldron_players, world, :left, id} -> ...
endA subscribed process is sent a message for every join and leave in every
Cauldron2D.World until it unsubscribes or exits; world is the world's pid.
Summary
Functions
Tell every subscriber that id joined or left the world world.
Receive every world's joins and leaves in the calling process.
Stop receiving them.
Functions
Tell every subscriber that id joined or left the world world.
@spec subscribe() :: :ok
Receive every world's joins and leaves in the calling process.
@spec unsubscribe() :: :ok
Stop receiving them.