I am sometimes using
socket.root_pid to send messages from embedded or child LiveViews to their parent. However I don’t really understand the difference. Is the
root_pid the routed LiveView? And then parent would be the next parent (given that there could be several layers of liveviews?)
I can’t really find documentation for it in Phoenix LiveView anywhere…
Does anyone know their difference?