Core class that provides an interface for storing and retrieving sync updates and awareness data during a collaborative session.
Description
Data is stored as post meta on a dedicated post per room of a custom post type.
Methods
| Name | Description |
|---|---|
| WP_Sync_Post_Meta_Storage::add_update | Adds a sync update to a given room. |
| WP_Sync_Post_Meta_Storage::get_awareness_state | Gets awareness state for a given room. |
| WP_Sync_Post_Meta_Storage::get_cursor | Gets the current cursor for a given room. |
| WP_Sync_Post_Meta_Storage::get_storage_post_id | Gets or creates the storage post for a given room. |
| WP_Sync_Post_Meta_Storage::get_update_count | Gets the number of updates stored for a given room. |
| WP_Sync_Post_Meta_Storage::get_updates_after_cursor | Retrieves sync updates from a room after the given cursor. |
| WP_Sync_Post_Meta_Storage::remove_updates_before_cursor | Removes updates from a room that are older than the given cursor. |
| WP_Sync_Post_Meta_Storage::set_awareness_state | Sets awareness state for a given room. |
Source
Changelog
| Version | Description |
|---|---|
| 7.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.