WebAPI/Inter App Communication: Difference between revisions

no edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 24: Line 24:
     // The returned Future will contain an array of MessagePort, each of
     // The returned Future will contain an array of MessagePort, each of
     // them representing an peer that allowed the connection.
     // them representing an peer that allowed the connection.
     Future connect(DOMString keyword);
     Promise connect(DOMString keyword);
    
    
     // The returned Future will contain ''true'' if at least a peer has been
     // The returned Future will contain ''true'' if at least a peer has been
     // selected, ''false'' otherwise.
     // selected, ''false'' otherwise.
     Future registerConnections(DOMString keyword);
     Promise registerConnections(DOMString keyword);
    
    
     void  unregisterConnections(DOMString keyword);
     void  unregisterConnections(DOMString keyword);
Line 34: Line 34:
     // The returned Future will contain ''true'' if at least a peer is allowed
     // The returned Future will contain ''true'' if at least a peer is allowed
     // to communicate with the application, ''false'' otherwise.
     // to communicate with the application, ''false'' otherwise.
     Future connectionsRegistered(DOMString keyword);
     Promise connectionsRegistered(DOMString keyword);
   };
   };


Line 99: Line 99:


Google Message Passing: https://developer.chrome.com/extensions/messaging.html
Google Message Passing: https://developer.chrome.com/extensions/messaging.html
[[Category:Web APIs]]
Confirmed users
1,340

edits