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
- Pusher App Credentials.
- Cluster mentioned in
config/broadcasting.php
is the same provided byPusher
- Restarted apache just to be sure.
Share your experiences with this issue.