Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
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 | config('broadcasting.connections.websockets.connection', null) |
||
25 | ); |
||
26 | } |
||
27 | |||
28 | return new PusherBroadcaster( |
||
29 | new Pusher($app['key'], $app['secret'], $app['id'], config('broadcasting.connections.pusher.options', [])) |
||
30 | ); |
||
31 | } |
||
32 | } |
||
33 |