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_interactionfor inactivity logic.
Related
last_interaction— Response from myzPAX showing last interaction time.sendZpaxMessage— Function to send messages to myzPAX.addZpaxMessageListener— Function to listen messages from myzPAX.