Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function getPusherBroadcaster(array $app) |
||
18 | { |
||
19 | if (config('websockets.replication.driver') === 'redis') { |
||
20 | return new RedisPusherBroadcaster( |
||
21 | new Pusher($app['key'], $app['secret'], $app['id'], config('broadcasting.connections.websockets.options', [])), |
||
22 | $app['id'], |
||
23 | app('redis') |
||
24 | ); |
||
25 | } |
||
26 | |||
27 | return new PusherBroadcaster( |
||
28 | new Pusher($app['key'], $app['secret'], $app['id'], config('broadcasting.connections.pusher.options', [])) |
||
29 | ); |
||
30 | } |
||
31 | } |
||
32 |