Skip to content
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
@rflatt-reassured

Description

@rflatt-reassured

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:

laravel websockets

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions