Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broadcast::auth($request); gives error in pusher #51639

Closed
Ankush-Hegde opened this issue May 30, 2024 · 1 comment
Closed

Broadcast::auth($request); gives error in pusher #51639

Ankush-Hegde opened this issue May 30, 2024 · 1 comment

Comments

@Ankush-Hegde
Copy link

Ankush-Hegde commented May 30, 2024

Laravel Version

8.83.27

PHP Version

8.2.7

Database Driver & Version

MySql

Description

i want to authenticate the a channel to subscribe to that perticular channel.

below code is from routes/channels.php

Broadcast::channel('chatId_{chatId}', function () {
    return true;
});

it works fine when

        $response = $pusher->authorizePresenceChannel(
            $channelName,
            $socketId,
            $userId,
            $presence_data
        );

        return response($response);
    }

Steps To Reproduce

when i replace

$response = $pusher->authorizePresenceChannel(
            $channelName,
            $socketId,
            $userId,
            $presence_data
        );

        return response($response);

with

return Broadcast::auth($request);

i get the error

\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Facades\\Facade.php(261): Illuminate\\Broadcasting\\BroadcastManager->__call()\n#2 
@driesvints
Copy link
Member

Hey there,

Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? If so, please open up a new issue and we'll help you out.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants