Difference between socket.root_pid and socket.parent_pid?

Hi! :wave:

I am sometimes using socket.parent_pid or 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?

Thanks :+1: