Phoenix.PubSub.RedisServer
Phoenix.PubSub adapter for Redis
See Phoenix.PubSub.Redis for details and configuration options.
Summary↑
| broadcast(namespace, pool_name, redis_msg) | Broadcasts message to redis. To be only called from {:perform, {m, f, a}} response to clients |
| handle_info(arg1, state) | Connection establishment and shutdown loop |
| init(args) | Initializes the server |
| start_link(opts) | Starts the server |
Functions
Broadcasts message to redis. To be only called from {:perform, {m, f, a}} response to clients
Connection establishment and shutdown loop
On init, an initial conection to redis is attempted when starting :redo
Initializes the server.
An initial connection establishment loop is entered. Once :redo
is started successfully, it handles reconnections automatically, so we
pass off reconnection handling once we find an initial connection.
Starts the server