Actually resolved this as I was using $subscribe in header component, whereas the store was being mutated before the mounting of header component.
Nov 27, 2024
1
Level 1
Laravel-echo not listening on first login
When I first login into vue.js app, laravel-echo does not listen to events broadcasted by laravel-websocket. Events are being broadcasted by laravel-websocket using pusher on a public channel and can be viewed in the laravel-websocket dashboard. Laravel-echo starts listening only when i have refreshed the App.vue component once after logging in.
Tech Stack: Backend API Laravel: 8 Laravel-websocket: 2.0@beta pusher/pusher-php-server: 7.0.2
Frontend Vue.js: 3.2.13 laravel-echo: 1.16.1 pusher-js: 8.4.0
Please or to participate in this conversation.