Phoenix.PubSub.RedisServer

Phoenix.PubSub adapter for Redis

See Phoenix.PubSub.Redis for details and configuration options.

Source

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

broadcast(namespace, pool_name, redis_msg)

Broadcasts message to redis. To be only called from {:perform, {m, f, a}} response to clients

Source
handle_info(arg1, state)

Connection establishment and shutdown loop

On init, an initial conection to redis is attempted when starting :redo

Source
init(args)

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.

Source
start_link(opts)

Starts the server

Source