Export (0) Print
Expand All

HTML5 Web Messaging

This section contains the API for HTML5 Web Messaging, which includes channel messaging and ports.

In this section

TopicDescription

MessageChannel

Provides a two way asynchronous messaging through two related ports enabling intra, and inter-window communication.

MessagePort

Provides an object where messages can be sent and received through a MessageChannel.

close

Closes a MessagePort from an existing MessageChannel.

postMessage (MessagePort)

Sends messages between two connected MessagePorts in a MessageChannel.

postMessage (window)

Sends a cross-document message.

start

Allows the MessagePort to begin receiving messages.

port1

Returns the first MessagePort object of a MessageChannel object.

port2

Returns the second MessagePort object of a MessageChannel object.

 

 

 

Show:
© 2014 Microsoft