net.xpc.IframePollingTransport.Sender Extends
goog.net.xpc.IframePollingTransport.Sender Utility class to send message-parts to a document from a different origin.

Inheritance

Constructor

goog.net.xpc.IframePollingTransport.Sender(urlwindowObj)

Parameters

url : string
The url the other document will use for polling.
windowObj : Object
The frame used for sending information to.

Instance Methods

Public Protected Private
send(payload)
Sends a message-part (frame) to the peer. The message-part is encoded and put in the fragment identifier of the URL used for sending (and belongs to the origin/domain of the peer).
Arguments:
payload : string
The message to send.
code »

Instance Properties

cycle_ :
Cycle counter (used to make sure that sending two identical messages sent in direct succession can be recognized as such by the receiver).
Code »
sendFrame_ :
The window object of the iframe used to send messages. The script instantiating the Sender won't have access to the content of sendFrame_.
Code »
sendUri_ :
The URI used to sending messages.
Code »

Package net.xpc.IframePollingTransport

Package Reference