ravenx_pusher v0.1.2 RavenxPusher View Source
RavenxPusher is a Strategy to send notifications through Pusher with Ravenx.
Link to this section Summary
Link to this section Functions
Link to this function
call(payload, opts \\ %{})
View Source
call(Ravenx.notif_payload, Ravenx.notif_options) :: {:ok, RavenxPusher.Push.t} | {:error, {:missing_config, any}} | {:error, {:pusher_error, RavenxPusher.Push.t}}
call/2
Accepts a payload and an options map
an returns {:ok, %Push{}}
if the notification
could be sent, {:error, {:missing_config, error}}
in case
any required config fields are missing, or {:error, {:pusher_error, %Push{}}}
in case there was an error when sending the notification.