~/docs
Resonate
Resonate
1.x 1.5.0, current
Resonate
Toggle sidebar
Resonate
webpatser/resonate 1.5.0

Resonate 1.x

Upgrade Guide

Upgrade from Resonate 0.7 to 1.0, including the transport connection limits that became configurable.

From 0.7 to 1.0

There are no breaking changes. Resonate 1.0.0 is functionally identical to v0.7.4. It marks the start of the semantic versioning promise for the 1.x line.

  1. Require the new major:

    composer require webpatser/resonate:^1.0
  2. Upgrade first-party plugins to their 1.x releases (webpatser/resonate-*:^1.0). Plugins that still require ^0.7 will not install next to Resonate 1.x. webpatser/resonate-upstream is still 0.x (newest tag v0.1.0) and requires webpatser/resonate:^1.4.

  3. Restart the server:

    php artisan resonate:restart

The escape hatches added in the 0.7 line stay supported and are not deprecated:

  • REVERB_VALIDATE_CHANNEL_NAMES (servers.reverb.validate_channel_names): set it to false if your application uses channel names outside Pusher's charset.
  • servers.reverb.trusted_proxies (REVERB_TRUSTED_PROXIES): list your proxy CIDR ranges so the rate limiter keys on the real client address.

The fallbackMessageSize fallback (Factory) and the resonate:restart command are unchanged.

Within 1.x

Several releases of the 1.x line change things you may touch in your own code. They are listed in the changelog of the repository.

  • v1.4.0 requires PHP 8.6 and replaces revolt/event-loop with webpatser/fledge-loop. The facade is Fledge\Loop (was Revolt\EventLoop) and its types live under Fledge\Loop\*. There is no alias layer, so a plugin or host app that calls Revolt\EventLoop must switch, and revolt/event-loop can no longer be installed next to Resonate. Server\Factory::make()'s $loop parameter is now ?Fledge\Loop\Driver, and the protected ApplicationClientFactory::enableNoDelay() is removed. TCP_NODELAY now comes from the listener's bind context, see Server\Factory::bindContext().
  • v1.5.0 makes resonate:reload drain-only under Supervisor. The Supervisor program needs autorestart=true. See Deployment.

Note: First-party plugins require webpatser/resonate ^1.4. Upgrade Resonate to 1.4 or later before installing the current plugin releases.

Transport connection limits

Added in v1.2.0. Earlier releases inherited fledge-fiber's hidden caps of 1000 connections per node and 10 per IP address, so behind a reverse proxy the 11th client was silently rejected. Both caps are now configurable and unlimited by default:

  • servers.reverb.connection_limit (REVERB_CONNECTION_LIMIT)
  • servers.reverb.connection_limit_per_ip (REVERB_CONNECTION_LIMIT_PER_IP)

If you published config/reverb.php, add both keys under servers.reverb (null or 0 means unlimited). To keep the old behaviour on a directly exposed node, set them to 1000 and 10.

REVERB_CONNECTION_LIMIT=1000
REVERB_CONNECTION_LIMIT_PER_IP=10

Factory::make() takes them as two new trailing optional parameters, so existing callers are unaffected.