Redis has the powerful ability to act both as a key-value store and as a PubSub service. This way, the connected servers will communicate between them whenever a message hits the server, so you can scale out to any amount of servers while preserving the WebSockets functionalities.
## Configure Redis mode
To enable the replication, simply change the `replication.mode` name in the `websockets.php` file to `redis`: