One of the practical protocols for real-time communication between two or more clients is webRTC. In fact, this protocol is for sharing images, videos, files, etc. in real time. The general structure without details of this protocol can be seen in the figure below.
Let's talk about these details and components: