pushito v0.1.0 Pushito.Connection View Source
This GenServer represents the APNs Connection.
Link to this section Summary
Functions
Closes a connection by name
Retrieves the config associated with the connection
Retrieves the http/2 process id. This is only used in tests
Pushes the notification
Starts the connection
Link to this section Functions
Closes a connection by name.
Link to this function
get_config(connection_name)
View Source
get_config(Pushito.connection_name) :: Pushito.Config.t
Retrieves the config associated with the connection
Link to this function
get_h2_connection(connection_name)
View Source
get_h2_connection(Pushito.connection_name) :: pid
Retrieves the http/2 process id. This is only used in tests
Link to this function
push(connection_name, notification)
View Source
push(Pushito.connection_name, Pushito.Notification.t) :: Pushito.Response.t | {:timeout, integer}
Pushes the notification
Link to this function
start_link(config, client)
View Source
start_link(Pushito.Config.t, pid) :: {:ok, pid}
Starts the connection.