`window.Echo = new Echo({
broadcaster: 'pusher',
key: 'mmy-key',
cluster: 'eu',
wsHost: 'laravel-project.test:6001', // Laravel broadcasting URL
forceTLS: true,
enabledTransports: ['ws', 'wss'],
auth: {
headers: {
Authorization: `Bearer 25|J6k01hqTUqKRhc5ws1z1bmQpY99LX2fnQLCvbncb` // Sanctum token
},
},
});`
abi dediklerini yaptım ekrandaki hata gitti ama hala yakalayamıyor private channel dan gelenleri pusher a düşüyor
vue js deki mounted fonksiyounu
mounted: () => {
window.Echo.private('requestResponse')
.listen('.Illuminate\\Notifications\\Events\\BroadcastNotificationCreated', (data) => {
console.log(data.message);
});
}
pushera gelen bildirim bilgisi
https://www.hizliresim.com/n4n2w3p