WebAPI/Inter App Communication Alt proposal: Difference between revisions

m
Line 67: Line 67:


=== Connection acknowledgement ===
=== Connection acknowledgement ===
Applications that fulfill the rules specified in the ''.connect()'' call and have explicitly been allowed by the user to connect with the caller application will receive a system message named 'connection' containing a ''ConnectionRequest'' object of this form as a ''message''.
Applications that fulfill the rules specified in the ''.connect()'' call and have explicitly been allowed by the user to connect with the caller application will receive a system message named 'connection' containing a ''InterAppConnectionRequest'' object of this form as a ''message''.


   Dictionary ConnectionRequest {
   Dictionary InterAppConnectionRequest {
     MessagePort port;
     DOMString          keyword;
     DOMString  keyword;
     InterAppMessagePort port;
   };
   };


where
where


* ''port'' is an instance of ''MessagePort'' that will be the message channel for the connection.
* ''keyword'' is the key string given with the ''.connect()'' call.
* ''keyword'' is the key string given with the ''.connect()'' call.
* ''port'' is an instance of ''InterAppMessagePort'' that will be the message channel for the connection.


== MessagePort ==
== MessagePort ==
Confirmed users
110

edits