hogsmill / no-estimates

0 stars 1 forks source link

Use the Vue Event Bus as a proxy for Socket communication #15

Open digiguru opened 4 years ago

digiguru commented 4 years ago

I've managed to get Mongo and Socket servers runnign, which is ace. On doing so I realised that the socket communication is spread all around the application and the socket object is being passed into a number of components. This is a little bit of an anti-pattern for a few reasons.

Here's an interesting blog post detailing how one would set it up.

https://medium.com/@spooky.dev/centralizing-socket-io-events-with-an-event-bus-in-vue-15e5d0e265eb

digiguru commented 4 years ago

Experimental branch #16 is where I am looking at the change