tlaverdure / laravel-echo-server

Socket.io server for Laravel Echo
MIT License
2.65k stars 511 forks source link

Redis Adapter Integration With Laravel Echo #615

Open Huzaifa-Asif opened 11 months ago

Huzaifa-Asif commented 11 months ago

To make Laravel Echo Server Horizontally Scalable Redis Adapter is integrated with Echo Server.

The following changes are made:

  1. Npm Version Update for Socket and Ioredis.
  2. Added two new modules Redis and Redis Adapter
  3. Socket Server Creation updated as per Socket 4.x module documentation.
  4. Attaching Redis Adapter in init method
Huzaifa-Asif commented 11 months ago

It will not effect the existing behaviour of Laravel Echo Npm Module, It will make sure that if multiple echo servers are running with same Redis Connection then the Event is emitted to other server as well if they are subscribed to that event.