Packagedom.objects
Interfacepublic interface MessagePort

Each channel has two message ports. Data sent through one port is received by the other port, and vice versa.

See also

W3C - HTML5: MessagePort


Public Properties
 PropertyDefined By
  HTML 5 active : Boolean
[read-only] Returns true if the port is still active; otherwise, returns false.
MessagePort
Public Methods
 MethodDefined By
  
HTML 5 close():void
Disconnects the port, so that it is no longer active.
MessagePort
  
HTML 5 postMessage(message:*, ports:MessagePortArray):void
Posts a message through the channel, optionally with the given ports.
MessagePort
  
HTML 5 start():void
Begins dispatching messages received on the port.
MessagePort
Property Detail
HTML 5 activeproperty
active:Boolean  [read-only]

Returns true if the port is still active; otherwise, returns false.


Implementation
    public function get active():Boolean

See also

Method Detail
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


Throws
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