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

Link to this function close(connection_name) View Source
close(atom) :: :ok

Closes a connection by name.

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

Pushes the notification

Link to this function start_link(config, client) View Source
start_link(Pushito.Config.t, pid) :: {:ok, pid}

Starts the connection.