Vaadin apps communication

I’ve got a question about vaadin applications communication. Well i have two vaadin apps, for example App A and App B and what is more, App B runs in an embedded component of App A. The question is: how App A can understand of what happening with App B? (A and B hosted even on different servers)
thanks in advance