Closed renatosistemasvc closed 6 years ago
after a week trying to solve, I finally managed to solve. The problem was in this code
I changed from
Broadcast::channel('notification.1', function ($user, $lojaId) {
return true;
});
for
Broadcast::channel('notification.{notification}', function ($user, $lojaId) {
return true;
});
I'm sorry for bothering you. I thought it was a bug, but it's not.
public channels function normally. For private channels, the error is:
⚠ [04:53:17] - 4JvRYXBHYYCJCB1UAAAD could not be authenticated to private-notification.1 {"message":"Unauthenticated."} Client can not be authenticated, got HTTP status 401
I tried every possible possibility and I did not succeed!I'm desperate because I have time to deliver this functionality. Can someone help me? Why can not I authenticate private channels with passport?
My current setting:
BroadcastServiceProvider.php
laravel-echo-server.json
channels.php
SendNotification.php
my frontend (file vue)