source: config/broadcasting.php@ c454c0f

main
Last change on this file since c454c0f was c454c0f, checked in by bube-ristovska <ristovska725@…>, 12 months ago

First commit

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[c454c0f]1<?php
2
3return [
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", "ably", "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_APP_KEY'),
36 'secret' => env('PUSHER_APP_SECRET'),
37 'app_id' => env('PUSHER_APP_ID'),
38 'options' => [
39 'cluster' => env('PUSHER_APP_CLUSTER'),
40 'host' => env('PUSHER_HOST') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com',
41 'port' => env('PUSHER_PORT', 443),
42 'scheme' => env('PUSHER_SCHEME', 'https'),
43 'encrypted' => true,
44 'useTLS' => env('PUSHER_SCHEME', 'https') === 'https',
45 ],
46 'client_options' => [
47 // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html
48 ],
49 ],
50
51 'ably' => [
52 'driver' => 'ably',
53 'key' => env('ABLY_KEY'),
54 ],
55
56 'redis' => [
57 'driver' => 'redis',
58 'connection' => 'default',
59 ],
60
61 'log' => [
62 'driver' => 'log',
63 ],
64
65 'null' => [
66 'driver' => 'null',
67 ],
68
69 ],
70
71];
Note: See TracBrowser for help on using the repository browser.