InTandemMessageHandler

Overview

InTandemMessageHandler is a utility provided by the inTandemAppCom package for managing communication and handling incoming messages. This includes processing messages and acknowledging receipt with optional success or failure details.


Installation

Ensure you have the inTandemAppCom package installed:

npm install inTandemAppCom

Importing and Initializing

To use the message handler:

import InTandemMessageHandler from 'inTandemAppCom';

const messageHandler = new InTandemMessageHandler();

Functions

FunctionDescription
addEventListenerListen to incoming events from the platform
getStateGet the state of the current host (widget or page)
setStateSet the state of the current host (widget or page)
navigateNavigate to a different page in the system
openModalOpen a system modal over the current page
getAuthGet an authorization token to use with JWKS
getUserGet the basic details about the user (impersonation, locale, current domain...)