Allow to use another redis connection than the default one.
Why
Sometimes you don't have a default redis connection, or at least it doesn't contain the host and port keys, if you're using sentinel for instance.
While awaiting for the sentinel support, a great comprise can be to let us customise which redis connection is used for the websockets.
How
In \Laravel\Reverb\Servers\Reverb\Publishing\RedisPubSubProvider::redisUrl function, use a configuration option to know which connection to use, or use the default one as a fallback.
Objective
Allow to use another redis connection than the default one.
Why
Sometimes you don't have a default redis connection, or at least it doesn't contain the host and port keys, if you're using sentinel for instance. While awaiting for the sentinel support, a great comprise can be to let us customise which redis connection is used for the websockets.
How
\Laravel\Reverb\Servers\Reverb\Publishing\RedisPubSubProvider::redisUrl
function, use a configuration option to know which connection to use, or use thedefault
one as a fallback.