2017 © Pedro Peláez
 

library laravel-redisreliable

Redis broadcast driver with reliable delivery

image

trepatudo/laravel-redisreliable

Redis broadcast driver with reliable delivery

  • Wednesday, March 16, 2016
  • by trepatudo
  • Repository
  • 1 Watchers
  • 5 Stars
  • 438 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Redis Reliable Broadcasting Driver

Same as RedisBroadcaster from illuminate/broadcasting but allows a customization to assure at least 1 subscriber has received the event, otherwise adds it into a list., (*1)

Requirements

  • laravel >= 5.1

Installation

Using Composer:, (*2)

composer require trepatudo/laravel-redisreliable

In your config/app.php file add the following provider to your service providers array:, (*3)

'providers' => [
    ...
    RedisReliableDriver\RedisReliableBroadcastServiceProvider::class,
    ...
]

In your config/broadcasting.php file set the default driver to 'redisreliable' and add the connection configuration like so:, (*4)

'default' => 'redisreliable',

'connections' => [
    ...
    'redisreliable' => [
      'driver' => 'redisreliable',
      'connection' => 'default',
      'sub_min'     => env('BROADCAST_REDISRELIABLE_MIN', 1), // Minimum subscribers required to get the broadcast (pub/sub) 
      'sub_list'   => env('BROADCAST_REDISRELIABLE_LIST', 'laravel_rr_list'), // List to add the broadcast payload and channel in case sub_min was not matched
    ],
    ...
]

The Versions

16/03 2016

dev-master

9999999-dev https://github.com/trepatudo/laravel-redisreliable

Redis broadcast driver with reliable delivery

  Sources   Download

MIT

The Requires

 

by Marco Silva

laravel redis broadcasting reliable