Comm Use Cases
Triggering UI changes from Java.
Non-blocking and future-proof replacement for sync Browser functions.
Using Comm in an OSGi Application
To use Comm in an OSGi application, you need to run the following bundles:
equo-comm.js should be automatically injected in the browser.
It is also available as an npm package named
You can use the
comm API in your application by injecting it as an OSGi service.
Dynamic send service
com.equo.comm.ee.provider also provides a dynamic implementation of the ICommSendService. When the browsers become ready to receive messages the service gets registered and otherwise unregistered accordingly.
To use it you should inject it using OSGi mechanisms, taking into account the possibility of it being unregistered at any moment.
When using ICommService to send events, there’s a stub
send implementation that saves the messages until an ICommService becomes available and when it does, it redirects those messages to that service.