Create "WP Heartbeat" API
|Reported by:||azaozz||Owned by:|
|Cc:||dh-shredder, bronson@…, bob@…, sabreuse, scribu, info@…, pippin@…, 24-7@…, knut@…, sirzooro, tom@…, nashwan.doaqan@…, gennady@…, DeanMarkTaylor, adamsilverstein@…, aaroncampbell, jess@…, ben@…, ratilal.sunny@…, me@…, frank@…, azizur, wordpress@…|
The purpose of this API is to simulate bidirectional connection between the browser and the server. Initially it will be used for autosave, post locking and log-in expiration warning while a user is writing or editing.
The idea is to have a relatively simple API that sends XHR requests to the server every 15 seconds and triggers events (or callbacks) on receiving data. Other components would be able to "hitch a ride" or get notified about another user's activities.
In the future this can be used to block simultaneous editing of widgets and menus or any other tasks that require regular updates from the server.