ably-js icon indicating copy to clipboard operation
ably-js copied to clipboard

[DTP-949] Initialise LiveObjects pool from state sync sequence

Open VeskeR opened this issue 4 months ago • 1 comments

This PR is based on https://github.com/ably/ably-js/pull/1887, please review it first.

Tests for SYNC sequence are added in https://github.com/ably/ably-js/pull/1894.

Resolves DTP-949

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features

    • Introduced a new method getChannel() in the LiveObjects class for improved channel access.
    • Added new interfaces for better data entry management: LiveCounterDataEntry and LiveMapDataEntry.
  • Improvements

    • Enhanced the initialization process of the LiveMap class for better clarity and functionality.
    • Updated handling of state synchronization messages for improved type-checking and performance.
    • Modified the LiveObjectsPool to instantiate LiveMap with enhanced semantics.
  • Bug Fixes

    • Adjusted internal logic for better data handling in the LiveObjectsPool and SyncLiveObjectsDataPool classes.

VeskeR avatar Oct 10 '24 07:10 VeskeR