Confirmed users
110
edits
m (→MessagePort) |
|||
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. | ||
== | == InterAppMessagePort == | ||
A '' | A ''InterAppMessagePort'' is the channel that connects two applications and allow them to send and receive messages. | ||
interface | interface InterAppMessagePort { | ||
void start(); | void start(); | ||
void | void close(); | ||
void postMessage( | void postMessage(in jsval message); | ||
attribute jsval onmessage; | attribute jsval onmessage; | ||
attribute jsval onstart; | attribute jsval onstart; | ||
attribute jsval | attribute jsval onclose; | ||
}; | }; | ||