-
Notifications
You must be signed in to change notification settings - Fork 61
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
class 'Vinkla\Pusher\Facades\Pusher' does not have a method 'socket_auth' #17
Comments
It has a __call method. |
Thanks for your quick response! Can you give me an example please ? |
No, just call the method? |
It doesn't need to exist to be called. |
I do not understand how to call the method "socket_auth". |
Should work just fine? |
No, it does not work: 'ErrorException' with message 'Undefined property: Vinkla\Pusher\PusherManager::$socket_auth' Finally I found a solution ... less clean but it works:
|
You need to call with with paramaters, instead of using property access. Your code there is not right. |
That there WILL work just fine. |
I just found the problem !! I added the alias 'Pusher' => Vinkla\Pusher\Facades\Pusher::class, Thanks for your help ! |
Hello,
I don't arrive to implementing the auth endpoint for a private channel. The response is: class 'Vinkla\Pusher\Facades\Pusher' does not have a method 'socket_auth'
My code:
Thank you for your help :)
The text was updated successfully, but these errors were encountered: