Skip to content

Commit

Permalink
Some fixes and updates
Browse files Browse the repository at this point in the history
  • Loading branch information
skoniks authored and skoniks committed Nov 2, 2018
1 parent 0508081 commit f306e57
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions centrifugo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
}
],
"require": {
"illuminate/container": "5.*"
"illuminate/container": "*",
"predis/predis": "*"
},
"autoload": {
"psr-4": {
"SKONIKS\\Centrifugo\\": "src/"
}
}
}
}
2 changes: 1 addition & 1 deletion src/Centrifugo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f306e57

Please sign in to comment.