bytedance / magic-portal

⚡ A blazing fast micro-component and micro-frontend solution uses web-components under the hood.
MIT License
90 stars 5 forks source link

Communication between micro apps #5

Open shuyue426 opened 3 years ago

shuyue426 commented 3 years ago

As we know,each app of magic-portal is a Web Component. What's the suggest way to communicate between magic-portal apps.

h-a-n-a commented 3 years ago

Yes, due to the fact that they are sharing the same global context, and we strictly follow the proposal. It's much like just an addEventListener on both side of the global context, we will add more examples to README later.