You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Collaboration edge is only exposed to PHP, so the client cannot act on it #451
Public APIAdds a hook, route, constant, or global that third parties can depend on[Area] Heartbeat 💓Issues for the heartbeat subsystem[Type] EnhancementA suggestion for improvement of an existing featurejavascriptPull requests that update javascript codephpPull requests that update php code
wp_presence_check_collaboration_threshold() fires wp_presence_collaboration_started and _ended on the 1 to 2+ and 2+ to 1 edges. Both are PHP actions. The editor heartbeat calls it at heartbeat.php:334 and then returns $response unchanged, so a browser has no way to learn the edge without polling something.
That makes the signal unusable for the case it exists for: letting the block editor decide whether to start the sync loop. Gutenberg derives hasCollaborators from its own poll response today, so a solo editor pays ~840 requests an hour to discover nobody else is there.
Done when
The editor heartbeat response carries the current editor count for the room
wp_presence_check_collaboration_threshold() returns the count instead of void
The new key is in RELAYED_TICK_KEYS (assets/js/presence-ping.js), or a coalesced sibling tab never receives it
Hey @theaminulai, please comment on the issue you want so a maintainer can assign it. GitHub only allows assignment to people who have commented. This helps avoid duplicating work.
Public APIAdds a hook, route, constant, or global that third parties can depend on[Area] Heartbeat 💓Issues for the heartbeat subsystem[Type] EnhancementA suggestion for improvement of an existing featurejavascriptPull requests that update javascript codephpPull requests that update php code
Activity
josephfusco commentedon Sep 2, 2026
Hey @theaminulai, please comment on the issue you want so a maintainer can assign it. GitHub only allows assignment to people who have commented. This helps avoid duplicating work.
https://github.com/WordPress/presence-api/blob/main/.github/CONTRIBUTING.md#claiming-an-issue
theaminulai commentedon Sep 2, 2026
I’d like to work on this issue. Please assign it to me. @josephfusco Thanks!
josephfusco commentedon Sep 9, 2026
Closing — #454 already covered all five items above.
feat: expose the room's collaborator count as JS hooks
feat: expose the room's collaborator count as JS hooks (#503)