goog.labs.net.webChannel.Channel |
Not needed for testchannel.
Allows the handler to override a host prefix provided by the server. Will
be called whenever the channel has received such a prefix and is considering
its use.
|
code » | |||
Not needed for testchannel.
Creates a data Uri applying logic for secondary hostprefix, port
overrides, and versioning.
|
code » | |||
Called when creating an XhrIo object. Override in a subclass if
you need to customize the behavior, for example to enable the creation of
XHR's capable of calling a secondary domain. Will also allow calling
a secondary domain if withCredentials (CORS) is enabled.
Arguments:
Returns: !goog.net.XhrIo
A new XhrIo object.
|
code » | |||
Not needed for testchannel.
Gets the Uri used for the connection that receives data from the server.
|
code » | |||
Not needed for testchannel.
Gets the result of previous connectivity tests.
Returns: !goog.labs.net.webChannel.ConnectionState
The connectivity state.
|
code » | |||
Not needed for testchannel.
Gets the Uri used for the connection that sends data to the server.
|
code » | |||
Gets whether this channel is currently active. This is used to determine the
length of time to wait before retrying. This call delegates to the handler.
Returns: boolean
Whether the channel is currently active.
|
code » | |||
Returns whether the channel is closed
Returns: boolean
true if the channel is closed.
|
code » | |||
![]()
Callback from ChannelRequest that indicates a request has completed.
Arguments:
|
code » | |||
![]()
Callback from ChannelRequest for when new data is received
Arguments:
|
code » | |||
Determines whether to use a secondary domain when the server gives us
a host prefix. This allows us to work around browser per-domain
connection limits.
Currently, we use secondary domains when using Trident's ActiveXObject,
because it supports cross-domain requests out of the box. Note that in IE10
we no longer use ActiveX since it's not supported in Metro mode and IE10
supports XHR streaming.
If you need to use secondary domains on other browsers and IE10,
you have two choices:
1) If you only care about browsers that support CORS
(https://developer.mozilla.org/en-US/docs/HTTP_access_control), you
can use
#setSupportsCrossDomainXhrs and set the appropriate
CORS response headers on the server.
2) Or, override this method in a subclass, and make sure that those
browsers use some messaging mechanism that works cross-domain (e.g
iframes and window.postMessage).
Returns: boolean
Whether to use secondary domains.
|
code » | |||
![]()
Not needed for testchannel.
Callback from TestChannel for when the channel has an error.
Arguments:
|
code » | |||
![]()
Not needed for testchannel.
Callback from TestChannel for when the channel is finished.
Arguments:
|
code » |