Skip to content

Commit f306e57

Browse files
skoniksskoniks
skoniks
authored and
skoniks
committed
Some fixes and updates
1 parent 0508081 commit f306e57

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Incompatible with Centrifugo [2.0+], will be updated later!
3030
'redis' => [
3131
...
3232
'centrifugo' => [
33-
'scheme' => 'tcp',
3433
'host' => '127.0.0.1',
3534
'password' => '',
3635
'port' => 6379,

centrifugo.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
return [
33
'redis' => [
44
'enable' => false, // Use REDIS for redis-available methods (by default uses http)
5-
'driver' => 'centrifugo' // REDIS channel name from Centrifugo config ($driver.".api")
6-
'connection' => 'centrifugo' // Name of REDIS connection in "config/database.php"
5+
'driver' => 'centrifugo', // REDIS channel name from Centrifugo config ($driver.".api")
6+
'connection' => 'centrifugo', // Name of REDIS connection in "config/database.php"
77
],
88
'url_api' => env('C_URL_API', 'http://localhost:8000/api/'), // HTTP API url for Centrifugo
99
'secret' => env('C_SECRET', null), // SUPER SECRET API KEY

composer.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
}
1111
],
1212
"require": {
13-
"illuminate/container": "5.*"
13+
"illuminate/container": "*",
14+
"predis/predis": "*"
1415
},
1516
"autoload": {
1617
"psr-4": {
1718
"SKONIKS\\Centrifugo\\": "src/"
1819
}
1920
}
20-
}
21+
}

src/Centrifugo.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function publish($channel, $data){
1313
'data' => $data,
1414
]);
1515
}
16-
public function broadcast((array)$channels, $data){
16+
public function broadcast($channels, $data){
1717
return $this->send('broadcast', [
1818
'channels' => $channels,
1919
'data' => $data,

0 commit comments

Comments
 (0)