@spotware-web-team/sdk-external-api
v0.0.6
Published
External Api for messaging using PostMessage or CustomEvent with Host
Readme
External Api
External Api for messaging using PostMessage or CustomEvent with Host
Installation
# If you use npm:
npm install @spotware-web-team/sdk-external-api
# Or if you use Yarn:
yarn add @spotware-web-team/sdk-external-apiDocumentation
Create logger or customize it
import {createLogger} from '@spotware/external-api';
const logger = createLogger();Create api
import {createExternalApi} from '@spotware/external-api';
const externalApi = createExternalApi();Use it to communicate with host
externalApi.api.send({payloadType: 1, payload: {}, clientMsgId: ''});