Package | dom.objects |
Interface | public interface MessagePort |
See also
Property | Defined By | ||
---|---|---|---|
HTML 5 active : Boolean [read-only]
Returns true if the port is still active; otherwise, returns false. | MessagePort |
Method | Defined By | ||
---|---|---|---|
HTML 5 close():void
Disconnects the port, so that it is no longer active. | MessagePort | ||
Posts a message through the channel, optionally with the given ports. | MessagePort | ||
HTML 5 start():void
Begins dispatching messages received on the port. | MessagePort |
HTML 5 active | property |
active:Boolean
[read-only] Returns true if the port is still active; otherwise, returns false.
public function get active():Boolean
See also
HTML 5 close | () | method |
public function close():void
Disconnects the port, so that it is no longer active.
See also
HTML 5 postMessage | () | method |
public function postMessage(message:*, ports:MessagePortArray):void
Posts a message through the channel, optionally with the given ports.
Parameters
message:* | |
ports:MessagePortArray |
DOMException — INVALID_STATE_ERR: If the ports array is not null and it contains either null
entries, duplicate ports, ports that are not entangled, or the source or target port.
|
See also
HTML 5 start | () | method |
public function start():void
Begins dispatching messages received on the port.
See also