This sample shows how to communicate between two apps or one app and one extension. Add app1, app2 and extension to Chrome and play with sending messages between them.