PHPackages                             automattic/jetpack-rtc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. automattic/jetpack-rtc

ActiveJetpack-library[HTTP &amp; Networking](/categories/http)

automattic/jetpack-rtc
======================

Real-time collaboration websocket transport support using WordPress.com infrastructure

v0.1.0(2mo ago)0391GPL-2.0-or-laterPHPPHP &gt;=7.2CI passing

Since Apr 9Pushed 2w agoCompare

[ Source](https://github.com/Automattic/jetpack-rtc)[ Packagist](https://packagist.org/packages/automattic/jetpack-rtc)[ RSS](/packages/automattic-jetpack-rtc/feed)WikiDiscussions trunk Synced 3w ago

READMEChangelogDependencies (6)Versions (3)Used By (1)

RTC
===

[](#rtc)

Real-time collaboration websocket transport support using WordPress.com infrastructure.

This package extends Gutenberg's Real-Time Collaboration (RTC) feature with a PingHub WebSocket transport provider, replacing the default HTTP polling with persistent WebSocket connections through the WordPress.com PingHub service.

How to install rtc
------------------

[](#how-to-install-rtc)

### Installation From Git Repo

[](#installation-from-git-repo)

Usage
-----

[](#usage)

Add the package as a dependency in your plugin's `composer.json`:

```
"require": {
    "automattic/jetpack-rtc": "@dev"
}
```

Then initialize it in your plugin:

```
use Automattic\Jetpack\Rtc;

RTC::init();
```

Architecture
------------

[](#architecture)

The package has two main layers:

### PHP (`src/`)

[](#php-src)

- **`RTC`** — Main class. Manages providers, enqueues assets, registers REST routes, and handles the RTC settings.
- **`REST_Pinghub_Token`** — REST endpoint that generates short-lived JWTs for PingHub WebSocket authentication.

### JavaScript (`src/js/`)

[](#javascript-srcjs)

- **`rtc.ts`** — Entry point. Registers the PingHub provider via the `sync.providers` filter.
- **`providers/pinghub/`** — PingHub provider implementation:
    - `pinghub-provider.ts` — Yjs provider (thin shell delegating to the manager).
    - `pinghub-manager.ts` — Per-room sync protocol, awareness, and reconnection logic.
    - `pinghub-bridge.ts` — WebSocket transport layer.

Contribute
----------

[](#contribute)

Get Help
--------

[](#get-help)

Using this package in your WordPress plugin
-------------------------------------------

[](#using-this-package-in-your-wordpress-plugin)

If you plan on using this package in your WordPress plugin, we would recommend that you use [Jetpack Autoloader](https://packagist.org/packages/automattic/jetpack-autoloader) as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well.

Security
--------

[](#security)

Need to report a security vulnerability? Go to  or directly to our security bug bounty site .

License
-------

[](#license)

rtc is licensed under [GNU General Public License v2 (or later)](./LICENSE.txt)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance91

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

76d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c5869ecbb8e0eac7e8b8e0f3cf7bdd8d5fcdc4abc10a72281872c53f8639d44?d=identicon)[automattic](/maintainers/automattic)

---

Top Contributors

[![mmtr](https://avatars.githubusercontent.com/u/1233880?v=4)](https://github.com/mmtr "mmtr (16 commits)")[![tbradsha](https://avatars.githubusercontent.com/u/32492176?v=4)](https://github.com/tbradsha "tbradsha (16 commits)")[![bindlegirl](https://avatars.githubusercontent.com/u/1242807?v=4)](https://github.com/bindlegirl "bindlegirl (7 commits)")[![anomiex](https://avatars.githubusercontent.com/u/1030580?v=4)](https://github.com/anomiex "anomiex (7 commits)")[![zaguiini](https://avatars.githubusercontent.com/u/26530524?v=4)](https://github.com/zaguiini "zaguiini (3 commits)")[![robertsreberski](https://avatars.githubusercontent.com/u/8419292?v=4)](https://github.com/robertsreberski "robertsreberski (3 commits)")[![kangzj](https://avatars.githubusercontent.com/u/1425433?v=4)](https://github.com/kangzj "kangzj (1 commits)")[![kraftbj](https://avatars.githubusercontent.com/u/88897?v=4)](https://github.com/kraftbj "kraftbj (1 commits)")[![manzoorwanijk](https://avatars.githubusercontent.com/u/18226415?v=4)](https://github.com/manzoorwanijk "manzoorwanijk (1 commits)")[![enejb](https://avatars.githubusercontent.com/u/115071?v=4)](https://github.com/enejb "enejb (1 commits)")[![obenland](https://avatars.githubusercontent.com/u/1398304?v=4)](https://github.com/obenland "obenland (1 commits)")[![rcrdortiz](https://avatars.githubusercontent.com/u/1989914?v=4)](https://github.com/rcrdortiz "rcrdortiz (1 commits)")[![coder-karen](https://avatars.githubusercontent.com/u/16754605?v=4)](https://github.com/coder-karen "coder-karen (1 commits)")[![darssen](https://avatars.githubusercontent.com/u/13239096?v=4)](https://github.com/darssen "darssen (1 commits)")[![fgiannar](https://avatars.githubusercontent.com/u/1758399?v=4)](https://github.com/fgiannar "fgiannar (1 commits)")

### Embed Badge

![Health badge](/badges/automattic-jetpack-rtc/health.svg)

```
[![Health](https://phpackages.com/badges/automattic-jetpack-rtc/health.svg)](https://phpackages.com/packages/automattic-jetpack-rtc)
```

###  Alternatives

[automattic/jetpack

Jetpack supercharges your self‑hosted WordPress site with the awesome cloud power of WordPress.com

3622.6k](/packages/automattic-jetpack)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
