diff --git a/README.md b/README.md index c6049c3..0a07ad8 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,6 @@ Incompatible with Centrifugo [2.0+], will be updated later! 'redis' => [ ... 'centrifugo' => [ - 'scheme' => 'tcp', 'host' => '127.0.0.1', 'password' => '', 'port' => 6379, diff --git a/centrifugo.php b/centrifugo.php index 5699138..6f13e2a 100644 --- a/centrifugo.php +++ b/centrifugo.php @@ -2,8 +2,8 @@ return [ 'redis' => [ 'enable' => false, // Use REDIS for redis-available methods (by default uses http) - 'driver' => 'centrifugo' // REDIS channel name from Centrifugo config ($driver.".api") - 'connection' => 'centrifugo' // Name of REDIS connection in "config/database.php" + 'driver' => 'centrifugo', // REDIS channel name from Centrifugo config ($driver.".api") + 'connection' => 'centrifugo', // Name of REDIS connection in "config/database.php" ], 'url_api' => env('C_URL_API', 'http://localhost:8000/api/'), // HTTP API url for Centrifugo 'secret' => env('C_SECRET', null), // SUPER SECRET API KEY diff --git a/composer.json b/composer.json index 12bc3fd..142c21e 100644 --- a/composer.json +++ b/composer.json @@ -10,11 +10,12 @@ } ], "require": { - "illuminate/container": "5.*" + "illuminate/container": "*", + "predis/predis": "*" }, "autoload": { "psr-4": { "SKONIKS\\Centrifugo\\": "src/" } } -} +} \ No newline at end of file diff --git a/src/Centrifugo.php b/src/Centrifugo.php index 7f2ba5a..e866fa8 100644 --- a/src/Centrifugo.php +++ b/src/Centrifugo.php @@ -13,7 +13,7 @@ public function publish($channel, $data){ 'data' => $data, ]); } - public function broadcast((array)$channels, $data){ + public function broadcast($channels, $data){ return $this->send('broadcast', [ 'channels' => $channels, 'data' => $data,