on-client-connect
AMPS provides modules for running actions on the connection or disconnection of an AMPS client.
The amps-action-on-disconnect-client
runs actions once an AMPS
client instance disconnects. The amps-action-on-connect-client
runs
actions once an instance of an AMPS client successfully connects.
These modules require no parameters.
These modules add the following variables to the AMPS context:
Variable | Description |
---|---|
AMPS_CLIENT_NAME | The name of the AMPS client. (For the |
AMPS_CONNECTION_NAME | The name of the AMPS connection. |
AMPS_AUTHENTICATION_ID | The authentication ID of the AMPS connection (for amps-action-on-disconnect-client action only). |