Integrations & Events
Overview
OmniSpatial has the ability to add integrations and communicate to/from those integrations. This is accomplished by relaying messages from any parent/child iframe onto the native Omni event observables. Similarly, all native Omni event observables will be published out to any parent/child iframes.
Concept
When events posted from an iframe, they are forwarded to other iframes (not the originating iframe) as well as to Omni. When events are posted from Omni, they are forwarded to all other iframes.
Omni Events
When Omni triggers an application event, that event is turned into a post message and forwarded onto all iframes (parent or child).
iFrame Events
When an iframe (parent or child) posts a message, the IntegrationEventForwardingService
will relay the message onto other iframes as well as onto the Omni application events.
Omni Post Messages
When a post message event is created directly from within Omni, that message is converted to an application event and is forwarded onto any parent/child iframes.