interaction

The interaction message is sent from the embedded app to report user activity. This helps myzPAX track the last time the user interacted with the app, which can be used for session timeout.

Message Type

type messageType = 'interaction';

Payload

None

Example

window.addEventListener('click', () => {
  sendZpaxMessage('interaction');
});

Use Cases

  • Maintain session activity.
  • Used in conjunction with last_interaction for inactivity logic.

Related