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.
-
Require the new major:
composer require webpatser/resonate:^1.0 -
Upgrade first-party plugins to their 1.x releases (
webpatser/resonate-*:^1.0). Plugins that still require^0.7will not install next to Resonate 1.x.webpatser/resonate-upstreamis still 0.x (newest tag v0.1.0) and requireswebpatser/resonate:^1.4. -
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 tofalseif 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-loopwith webpatser/fledge-loop. The facade isFledge\Loop(wasRevolt\EventLoop) and its types live underFledge\Loop\*. There is no alias layer, so a plugin or host app that callsRevolt\EventLoopmust switch, andrevolt/event-loopcan no longer be installed next to Resonate.Server\Factory::make()'s$loopparameter is now?Fledge\Loop\Driver, and the protectedApplicationClientFactory::enableNoDelay()is removed. TCP_NODELAY now comes from the listener's bind context, seeServer\Factory::bindContext(). - v1.5.0 makes
resonate:reloaddrain-only under Supervisor. The Supervisor program needsautorestart=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=1000REVERB_CONNECTION_LIMIT_PER_IP=10
Factory::make() takes them as two new trailing optional parameters, so existing callers are unaffected.