broadcasting.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Broadcaster
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option controls the default broadcaster that will be used by the
  9. | framework when an event needs to be broadcast. You may set this to
  10. | any of the connections defined in the "connections" array below.
  11. |
  12. | Supported: "reverb", "pusher", "ably", "redis", "log", "null"
  13. |
  14. */
  15. 'default' => env('BROADCAST_DRIVER', 'null'),
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Broadcast Connections
  19. |--------------------------------------------------------------------------
  20. |
  21. | Here you may define all of the broadcast connections that will be used
  22. | to broadcast events to other systems or over WebSockets. Samples of
  23. | each available type of connection are provided inside this array.
  24. |
  25. */
  26. 'connections' => [
  27. 'reverb' => [
  28. 'driver' => 'reverb',
  29. 'key' => env('REVERB_APP_KEY'),
  30. 'secret' => env('REVERB_APP_SECRET'),
  31. 'app_id' => env('REVERB_APP_ID'),
  32. 'options' => [
  33. 'host' => env('REVERB_HOST'),
  34. 'port' => env('REVERB_PORT', 443),
  35. 'scheme' => env('REVERB_SCHEME', 'https'),
  36. 'useTLS' => env('REVERB_SCHEME', 'https') === 'https',
  37. ],
  38. 'client_options' => [
  39. // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
  40. ],
  41. ],
  42. 'redis' => [
  43. 'driver' => 'redis',
  44. 'connection' => 'default',
  45. ],
  46. 'ably' => [
  47. 'driver' => 'ably',
  48. 'key' => env('ABLY_KEY'),
  49. ],
  50. 'log' => [
  51. 'driver' => 'log',
  52. ],
  53. 'null' => [
  54. 'driver' => 'null',
  55. ],
  56. ],
  57. ];