phoenix_postgres_pub_sub v0.1.0 PhoenixPostgresPubSub

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Listen for changes

When the GenServer starts subscribe to the given channel

Initialize the GenServer

Link to this section Functions

Link to this function child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function handle_info(msg, state)

Listen for changes

Link to this function init(channels)
init(List.t()) :: {:ok, []}

When the GenServer starts subscribe to the given channel

Link to this function start_link(channels)
start_link(List.t()) :: {:ok, pid()}

Initialize the GenServer