This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
Unable to get private channels #149
Closed
Description
In my function, I connect to pusher and display the channels. Although I have both presence and private ones, it only displays the presence ones:
public function handle()
{
$channels = [];
$pusher = new Pusher(env('PUSHER_APP_KEY'), env('PUSHER_APP_SECRET'), env('APP_NAME'), [
'host' => config('broadcasting.connections.pusher.options.host'),
'port' => config('broadcasting.connections.pusher.options.port'),
]);
$response = $pusher->get('/channels');
dd($response);
}
This returns:
array:3 [
"body" => "{"channels":{"presence-url.leadenquiries.view.4429331":{"user_count":1}}}"
"status" => 200
"result" => array:1 [
"channels" => array:1 [
"presence-url.leadenquiries.view.4429331" => array:1 [
"user_count" => 1
]
]
]
]
The dashboard shows two occupied private channels which aren't returned:
Metadata
Metadata
Assignees
Labels
No labels