WP_Sync_Storage::get_updates_after_cursorpublicWP 7.0.0

Retrieves sync updates from a room for a given client and cursor. Updates from the specified client should be excluded.

Method of the class: WP_Sync_Storage{}

No Hooks.

Returns

Array. mixed> Sync updates.

Usage

$WP_Sync_Storage = new WP_Sync_Storage();
$WP_Sync_Storage->get_updates_after_cursor( $room, $cursor ): array;
$room(string) (required)
Room identifier.
$cursor(int) (required)
Return updates after this cursor.

Changelog

Since 7.0.0 Introduced.

WP_Sync_Storage::get_updates_after_cursor() code WP 7.0

public function get_updates_after_cursor( string $room, int $cursor ): array;