WebAPI/Inter App Communication Alt proposal: Difference between revisions

Jump to navigation Jump to search
m
Line 79: Line 79:
* ''port'' is an instance of ''InterAppMessagePort'' that will be the message channel for the connection.
* ''port'' is an instance of ''InterAppMessagePort'' that will be the message channel for the connection.


== MessagePort ==
== InterAppMessagePort ==
A ''MessagePort'' is the channel that connects two applications and allow them to send and receive messages.
A ''InterAppMessagePort'' is the channel that connects two applications and allow them to send and receive messages.


   interface MessagePort {
   interface InterAppMessagePort {
     void start();
     void start();
     void stop();
     void close();
     void postMessage(...);
     void postMessage(in jsval message);
     attribute jsval onmessage;
     attribute jsval onmessage;
     attribute jsval onstart;
     attribute jsval onstart;
     attribute jsval onstop;
     attribute jsval onclose;
   };
   };


Confirmed users
110

edits

Navigation menu