server/src/config/broadcasting.php
changeset 280 59a2c10ac9b8
equal deleted inserted replaced
279:5d2621f71f39 280:59a2c10ac9b8
       
     1 <?php
       
     2 
       
     3 return [
       
     4 
       
     5     /*
       
     6     |--------------------------------------------------------------------------
       
     7     | Default Broadcaster
       
     8     |--------------------------------------------------------------------------
       
     9     |
       
    10     | This option controls the default broadcaster that will be used by the
       
    11     | framework when an event needs to be broadcast. You may set this to
       
    12     | any of the connections defined in the "connections" array below.
       
    13     |
       
    14     | Supported: "pusher", "redis", "log", "null"
       
    15     |
       
    16     */
       
    17 
       
    18     'default' => env('BROADCAST_DRIVER', 'null'),
       
    19 
       
    20     /*
       
    21     |--------------------------------------------------------------------------
       
    22     | Broadcast Connections
       
    23     |--------------------------------------------------------------------------
       
    24     |
       
    25     | Here you may define all of the broadcast connections that will be used
       
    26     | to broadcast events to other systems or over websockets. Samples of
       
    27     | each available type of connection are provided inside this array.
       
    28     |
       
    29     */
       
    30 
       
    31     'connections' => [
       
    32 
       
    33         'pusher' => [
       
    34             'driver' => 'pusher',
       
    35             'key' => env('PUSHER_KEY'),
       
    36             'secret' => env('PUSHER_SECRET'),
       
    37             'app_id' => env('PUSHER_APP_ID'),
       
    38             'options' => [
       
    39                 //
       
    40             ],
       
    41         ],
       
    42 
       
    43         'redis' => [
       
    44             'driver' => 'redis',
       
    45             'connection' => 'default',
       
    46         ],
       
    47 
       
    48         'log' => [
       
    49             'driver' => 'log',
       
    50         ],
       
    51 
       
    52         'null' => [
       
    53             'driver' => 'null',
       
    54         ],
       
    55 
       
    56     ],
       
    57 
       
    58 ];