PushEx (PushEx v2.0.0)

PushEx context exposes public API functions.

Link to this section Summary

Functions

Returns a child_spec that can be used to start the PushEx web endpoint.

Returns the number of channels connected to this node.

Returns the pids of connected Channel processes.

Returns the number of sockets (transports) connected to this node.

Returns the pids of connected transport processes (Socket processes).

Triggers a Push to be instrumented/enqueued into the system.

Link to this section Functions

Link to this function

child_spec(opts)

Returns a child_spec that can be used to start the PushEx web endpoint.

Link to this function

connected_channel_count()

Specs

connected_channel_count() :: non_neg_integer()

Returns the number of channels connected to this node.

Link to this function

connected_channel_pids()

Returns the pids of connected Channel processes.

Link to this function

connected_socket_count()

Specs

connected_socket_count() :: non_neg_integer()

Returns the number of sockets (transports) connected to this node.

Link to this function

connected_transport_pids()

Returns the pids of connected transport processes (Socket processes).

Specs

push(%PushEx.Push{channel: term(), data: term(), event: term(), unix_ms: term()}) ::
  true

Triggers a Push to be instrumented/enqueued into the system.