Disclosure: When you purchase a service or a product through our links, we sometimes earn a commission.Β Read More..

FREE Email Marketing Course

How to connect two objects that communicate with each other?

October 4, 2019 By admin

Software https://softwareengineering.stackexchange.com/questions/388330/how-to-connect-two-objects-that-communicate-with-each-other

I’m writing a simple chat using Node.js, Websockets and Vue.js. Specifically, I’ve got a Vue case and also a Websockets Customer . When a person presses a”Publish” button, then Vue asks the Client to send a message to some Server. After the Customer receives a message in the Server, it requests your Vue to render it into the page. My very first idea was for the Vue to possess an reference to Client, and for Client to have an reference to Vue, however the 2 objects become tightly coupled. Can there be a better way to apply communication between these two objects?