Pushest v0.2.2 Pushest.Supervisor View Source

Supervises Api and Socket processes, handles generation of proper configuration for those modules.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Fetches necessary Pusher configuration from a host OTP application config. Returs that configuration without pusher_ prefix

Link to this section Types

Link to this type pusher_opts() View Source
pusher_opts() :: %{
  app_id: String.t(),
  secret: String.t(),
  key: String.t(),
  cluster: String.t(),
  encrypted: boolean()
}

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Fetches necessary Pusher configuration from a host OTP application config. Returs that configuration without pusher_ prefix.

Link to this function start_link(pusher_opts, callback_module, init_channels) View Source
start_link(map(), module(), list()) :: {:ok, pid()} | {:error, term()}