LiSA Social Commerce
Developers
Developers
  • Developers
  • Guides
    • Integration Guide
      • Web Integration
      • App Integration
        • Android
          • Communication
          • Storage
          • File Downloads
          • Theming
        • iOS
          • Communication
          • Storage
          • File Downloads
          • Theming
        • React Native
          • Communication
          • Storage
          • File Downloads
          • Theming
        • Picture in Picture
      • Entrypoints
        • Query Parameter (v1)
    • Player Communication
      • Message API Reference
        • App
          • App — Heartbeat
          • App — Message Acknowledge
          • App — Message Error
          • App — Listen
        • CTA
          • CTA — Link in Comments
          • CTA — Sponsor Badge
        • Cart — View Cart
        • Comments — Join
        • Media
          • Media — Complete
          • Media — Pause
          • Media — Progress
          • Media — Resume
        • Media Item
          • Media Item — Emoji
          • Media Item — Impression
        • Player
          • Player — Dismiss
          • Player — Native Picture-in-Picture (PiP)
          • Player — Pass Visual Viewport
          • Player — Request Visual Viewport
          • Player — UI Transition
        • Products
          • Products — Add to Cart
          • Products — Add to Wishlist
          • Products — Click
          • Products — Close Product List
          • Products — Emoji
          • Products — Emoji State Update
          • Products — Impression
          • Products — Open Product List
        • Stickers
          • Stickers — Activate
          • Stickers — Click
          • Stickers — Expire
          • Stickers — Impression
          • Stickers — Publish
          • Stickers — Unlock
          • Stickers — Unpublish
          • Stickers — Update
          • Stickers — Voucher Claim
        • Visitor — Pass User Context
        • Shared Legacy Message Properties
    • Products
      • Product Update Notification API
  • Widgets
    • Content Hub
    • Quick Start Guide
    • Appearance
      • Markup
      • Responsive design
    • Configuration options
      • Autoplay
      • Channel
      • Client
      • Data
      • Debug
      • Host node
      • Layout
      • Language
      • On
      • Player
      • Query string
      • Quick view
      • Sections
      • Store
      • Template
    • API reference
      • Library API reference
      • Player API reference
      • Quick View API reference
    • Customisations
      • Template
      • Bring your own template
      • Type definitions
    • Examples
    • Type definitions
      • Asset
      • Product
      • Other
    • Promo Widget
      • Quick Start Guide
      • Configuration options
        • Autoplay
        • Channel
        • Countdown (deprecated)
        • Enabled
        • Image modifier
        • Lead time
        • Live (deprecated)
        • Position
        • Replay (deprecated)
        • Show ID
        • URL
  • Media Player Introduction
    • Picture-in-Picture Mode
  • Analytics
  • REST API
    • Authentication
    • Rate limits
    • Response status and error codes
    • API Documentation
Powered by GitBook
On this page
  • Properties
  • Type Definition
  1. Guides
  2. Player Communication

Message API Reference

Documentation Update in Progress

We are currently revisiting and updating this section of our documentation to ensure it provides the most accurate and helpful information. Some content may be incomplete or outdated during this process. Additionally, we are in the process of adding the Message API reference for Player Version 2.

Thank you for your patience! If you have any immediate questions, please don’t hesitate to contact our support team.

All LiSA Player messages conform to the Message interface. This interface includes details about the specific type of event, along with sender information and optional recipient information.

Properties

Name
Type
Description

clockDriftInMs

Required.

The clockDriftInMs field represents the calculated drift between the client's local clock and the server's UTC time. It is measured in milliseconds (ms).

Definition

Clock drift is the difference between the client's perceived current time and the expected local time derived from the server's UTC timestamp.

Interpretation

  • Positive value → The client clock is behind UTC (i.e., it is running slow).

  • Negative value → The client clock is ahead of UTC (i.e., it is running fast).

  • Zero → The client clock is perfectly in sync with the server time.

messageId

Optional.

The messageId property is used to acknowledge the receipt of messages by the Player.

This is particularly important for messages that require confirmation to ensure they are reliably received and not lost.

messageType

Required.

The messageType property specifies the distinct type of message.

recipient

Required for messages sent to the LiSA Player.

The distinct recipient identifier, specifying the receiver of this message. LiSA Player only accepts and processes message with value LiSA. LiSA Player omits this property, when sending messages.

sender

Required.

The distinct sender identifier, specifying the origin of this message. LiSA Player uses fixed value LiSA, when sending messages.

Legacy Properties

If your integration uses LiSA Player Version 1, none of the properties described above will be available.

For LiSA Player Version 2, legacy properties can be ignored.

Name
Type
Description

action

Required.

additional

Optional.

target

Required.


Type Definition

interface Message {
  clockDriftInMs: number;
  messageId?: string;
  messageType: string;
  recipient?: 'LiSA';
  sender: string;

  // Legacy LiSA Player V1 attributes for backwards compatibility. 

  action: string;
  additional?: Record<string, unknown>;
  target: string;
}
PreviousPlayer CommunicationNextApp

Last updated 1 month ago

The distinct action representing the messages intent. Please use messageType instead.

Map of additional message attributes. Please use specific message attributes instead.

The distinct target addressing the scope of this message. Please use messageType instead.

Number
String
String
String
String
String
Object
String
⚠️
⚠️
⚠️