Skip to main content

on-incoming-replication

AMPS includes a set of modules that allow you to configure an action to run based on events for incoming replication connections.

The amps-action-on-connect-incoming-replication module runs when an incoming replication connection is accepted. The amps-action-on-disconnect-incoming-replication module runs when an incoming replication connection is disconnected.

These modules require no parameters.

These modules add the following variables to the AMPS context:

VariableDescription
AMPS_REPLICATION_PEER_NAMEThe instance name of the AMPS instance on the opposite end of the connection, if available.
AMPS_REPLICATION_CLIENT_NAMEThe name of the AMPS client used for this connection.
AMPS_REPLICATION_REMOTE_ADDRESSThe remote address of the opposite end of the connection.
AMPS_REPLICATION_GROUP_NAMEThe group name of the AMPS instance on the opposite end of the connection, if available.