PushEx (PushEx v2.2.0)

PushEx context exposes public API functions.

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.

Functions

child_spec(opts)

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

connected_channel_count()

@spec connected_channel_count() :: non_neg_integer()

Returns the number of channels connected to this node.

connected_channel_pids()

Returns the pids of connected Channel processes.

connected_socket_count()

@spec connected_socket_count() :: non_neg_integer()

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

connected_transport_pids()

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

push(item)

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

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