FastX Event Triggers

API “Gateway” Triggers

This trigger is called every time an API call is made. The


{
"action": API_ACTION /* The api action that is being called */
}

  • [before | after]/api/session/start/start
  • [before | after]/api/session/start/schedule
  • [before | after]/api/session/bookmark/start
  • [before | after]/api/session/bookmark/schedule
  • [before | after]/api/session/connect
  • [before | after]/api/session/disconnect
  • [before | after]/api/session/exec
  • [before | after]/api/session/log
  • [before | after]/api/session/params
  • [before | after]/api/session/screenshot
  • [before | after]/api/session/terminate
  • [before | after]/api/session/update

Update Triggers

This event is triggered every time the session updates the server.  These triggers are executed in the nodejs server and by the node user (fastx).

The update trigger is a javascript function that takes an object as a parameter. The object has the following parameters

{
"clientChange": 0, /* number of clients that have changed since last update */
"started": false, /* Is this a new session */
"terminated": false, /* Was this session terminated */
"oldSession": SESSION_DATA, /* Session Data currently in the database */
"newSession": SESSION_DATA, /* Session Data that will be updated */
}