Clanbite

class Notification_Rest_Controller extends WP_REST_Controller

REST endpoints for notifications with long polling support.

class final

Full name
Kernowdev\Clanbite\Extensions\Notification\Notification_Rest_Controller
Extends
WP_REST_Controller

Constants

NameValueDescription
DEFAULT_POLL_INTERVAL4000Default polling interval in milliseconds.
ACTIVE_POLL_INTERVAL1000Active polling interval (when there are recent notifications).
MAX_POLL_WAIT25Maximum long poll wait time in seconds (worker holds a PHP process for up to this duration when blocking wait is on).

Methods

Defined in inc/extensions/notifications/class-notification-rest-controller.php