How to send messages to the open tabs of an app in chrome

3

I'm fixing the sync part between the open tabs of my app and I remembered that Google Chrome has an API that if I'm not mistaken does exactly what I need, send messages internally in an application.

I took a look at Google and Chrome Developers and got all confused, so I thought it would be better to ask anyone who already understands it.

I need a code that I sent messages to the open tabs of an app (as already mentioned) and also how it would be to receive this message.

    
asked by anonymous 08.04.2014 / 04:04

1 answer

1

In a recent project it was necessary to do something similar. It consisted of an accounting system. When the user selects another company, all tabs should be notified and updated.

The system in question was implemented in JSF 2 with PrimeFaces, so I used the Push component, which underneath the cloths uses the framework Atmosphere .

This link contains a tutorial on the framework.

    
08.04.2014 / 15:06