Reputation: 1103
Just started to use Pusher
for my Laravel
application. I am using Laravel's Event Broadcasting
.
CLIENT SIDE
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}");
//console.log(pusher);
var channel = pusher.subscribe('superadmin');
channel.bind('NewUser', function(data) {
console.log(data)
});
ISSUE
Pusher : Error : {"type":"WebSocketError","error":{"type":"PusherError","data":{"code":4001,"message":"Could not find app by key MY_PUSHER_APP_KEY. Perhaps you're connecting to the wrong cluster."}}}
ALREADY VERIFIED
config/broadcasting.php
is the same provided by Pusher
Share your experiences with this issue.
Upvotes: 3
Views: 10848
Reputation: 165
I was getting the same error. I was using PUSHER_APP_ID instead of PUSHER_APP_KEY
Upvotes: 0