WP_Sync_Storage::get_cursor
Gets the current cursor for a given room. This should return a monotonically increasing integer that represents the last update that was returned for the room during the current request. This allows clients to retrieve updates after a specific cursor on subsequent requests.
Method of the class: WP_Sync_Storage{}
No Hooks.
Returns
Int. Current cursor for the room.
Usage
$WP_Sync_Storage = new WP_Sync_Storage(); $WP_Sync_Storage->get_cursor( $room ): int;
- $room(string) (required)
- Room identifier.
Changelog
| Since 7.0.0 | Introduced. |
WP_Sync_Storage::get_cursor() WP Sync Storage::get cursor code WP 7.0
public function get_cursor( string $room ): int;