ably-js
ably-js copied to clipboard
[DTP-949] Initialise LiveObjects pool from state sync sequence
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
andLiveMapDataEntry
.
- Introduced a new method
-
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.