System and methods of communicating events between multiple applications
View Patent ↗A system and methods of communicating events includes detecting, on a code space of an application, an event at the application; transmitting the detected event from the application to an embedded application, the embedded application being embedded in the application; and triggering the detected event on an event aggregator of the embedded application based upon data associated with the detected event.
1. A non-transitory computer-readable storage medium storing instructions that, when executed by a computer, cause the computer to perform a method of communicating events, the method comprising:
detecting an event at a first application written in a first programming language, the first application being embedded in a host application written in a second programming language and running on a computing device;
initiating a broadcast of the detected event on an event aggregator in the host application;
determining, by the host application, whether a second application is embedded in the host application; and
if the second application is determined to be embedded in the host application, transmitting the detected event from the host application to the second embedded application;
wherein transmitting the detected event comprises sending data associated with the detected event from the second embedded application to the host application, wherein the data associated with the detected event includes an identifier of the detected event;
determining by an event aggregator the first embedded application whether at least one operation is to be executed by the first embedded application in response to the received event; and
upon a positive determination by the event aggregator in the first embedded application that the at least one operation is to be executed, executing on the first embedded application the at least one operation in response to the detected event.
2. The non-transitory computer-readable storage medium of claim 1 , wherein a coding language of the first embedded application differs from at least one of a coding language of the host application and a coding language of the second embedded application.
3. The non-transitory computer-readable storage medium of claim 1 , wherein the method performed further comprise, notifying a subscriber of the application of the detected event, the subscriber being a program function in the host application.
4. The non-transitory computer-readable storage medium of claim 1 , wherein the transmitting of the detected event comprises sending data associated with the detected event from the host application to the second embedded application.