RigInboundGateway.ApiProxy.PresenceHandler (Reactive Interaction Gateway v3.0.0-alpha.2) View Source

Handles Phoenix Presence events.

Implemented as a Phoenix.Tracker, this module tracks all events it receives from the given Phoenix PubSub server. Only join events that refer to the @proxy topic are considered for inclusion into the PROXY.

The PROXY server is started from, and linked against, this server.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Forwards joins on the "proxy" topic to the Proxy server.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_diff(diff, state)

View Source

Forwards joins on the "proxy" topic to the Proxy server.

Leaves are not handled since we want to keep track of removed APIs and potentially renew them.