broadcasting.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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_CONNECTION', '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. 'pusher' => [
  43. 'driver' => 'pusher',
  44. 'key' => env('PUSHER_APP_KEY'),
  45. 'secret' => env('PUSHER_APP_SECRET'),
  46. 'app_id' => env('PUSHER_APP_ID'),
  47. 'options' => [
  48. 'cluster' => env('PUSHER_APP_CLUSTER'),
  49. 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com',
  50. 'port' => env('PUSHER_PORT', 443),
  51. 'scheme' => env('PUSHER_SCHEME', 'https'),
  52. 'encrypted' => true,
  53. 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https',
  54. ],
  55. 'client_options' => [
  56. // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
  57. ],
  58. ],
  59. 'ably' => [
  60. 'driver' => 'ably',
  61. 'key' => env('ABLY_KEY'),
  62. ],
  63. 'log' => [
  64. 'driver' => 'log',
  65. ],
  66. 'null' => [
  67. 'driver' => 'null',
  68. ],
  69. ],
  70. ];