interface CustomMessageHandlerProps {
    onReceivedAsynchronousMessage: ((message, data) => void);
    onReceivedSynchronousMessage: ((message, data) => undefined | string);
}

Properties

onReceivedAsynchronousMessage: ((message, data) => void)

A function that will be called when the Player UI sends an asynchronous message to the integration.

Type declaration

    • (message, data): void
    • Parameters

      • message: string
      • data: undefined | string

      Returns void

onReceivedSynchronousMessage: ((message, data) => undefined | string)

A function that will be called when the Player UI sends a synchronous message to the integration.

Type declaration

    • (message, data): undefined | string
    • Parameters

      • message: string
      • data: undefined | string

      Returns undefined | string