On Client Connect or Disconnect

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:

VariableDescription

AMPS_CLIENT_NAME

The name of the AMPS client.

(For the amps-action-on-connect-client action, this will be the connection name since this event happens before the client has provided a client name in the logon command.)

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).

Last updated

Copyright 2013-2024 60East Technologies, Inc.