Confirmed users
1,340
edits
m (→Description) |
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. | ||
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. | ||
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. | ||
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]] | |||