3 years ago

Vue components + pusher.js

Posted 3 years ago by erikbelusic

Need some advice on Vuejs architecture when it comes to pusher. I have various components that will be listening to pusher channels. Some are page specific, but some are global, such as a notification component that sits in the header. Should i be instantiating pusher in each component and responding (multiple instantiations?) or should I be listening to all the channels/events in my main Vue instance and use Vue's event system to update my components?

Please sign in or create an account to participate in this conversation.