Core class that contains an HTTP server used for collaborative editing.
Methods
| Name | Description |
|---|---|
| WP_HTTP_Polling_Sync_Server::__construct | Constructor. |
| WP_HTTP_Polling_Sync_Server::add_update | Adds an update to a room’s update list via storage. |
| WP_HTTP_Polling_Sync_Server::can_user_sync_entity_type | Checks if the current user can sync a specific entity type. |
| WP_HTTP_Polling_Sync_Server::check_permissions | Checks if the current user has permission to access a room. |
| WP_HTTP_Polling_Sync_Server::get_updates | Gets sync updates for a specific client from a room after a given cursor. |
| WP_HTTP_Polling_Sync_Server::handle_request | Handles request: stores sync updates and awareness data, and returns updates the client is missing. |
| WP_HTTP_Polling_Sync_Server::process_awareness_update | Processes and stores an awareness update from a client. |
| WP_HTTP_Polling_Sync_Server::process_sync_update | Processes a sync update based on its type. |
| WP_HTTP_Polling_Sync_Server::register_routes | Registers REST API routes. |
| WP_HTTP_Polling_Sync_Server::validate_request | Validates that the request body does not exceed the maximum allowed size. |
Source
Changelog
| Version | Description |
|---|---|
| 7.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.