WebChannelBase.Handler
interface.
goog.labs.net.webChannel.WebChannelBase.Handler | |
goog.labs.net.webChannel.WebChannelBaseTransport.Channel.Handler_ | goog.labs.net.webChannel.WebChannelBase.Handler |
channel
: !WebChannelBaseTransport.Channel
The enclosing WebChannel.
|
![]()
Called by the channel if enumeration of the map throws an exception.
Arguments:
|
code » | ||||
![]()
Indicates the WebChannel is closed. Also notifies about which maps,
if any, that may not have been delivered to the server.
Arguments:
|
code » | ||||
![]()
Indicates an error occurred on the WebChannel.
Arguments:
|
code » | ||||
![]()
New input is available for the application to process.
Arguments:
|
code » | ||||
![]()
Callback handler for when a batch of response arrays is received from the
server. When null, batched dispatching is disabled.
|
code » | ||||
![]()
Indicates the WebChannel has successfully negotiated with the server
and can now send and receive data.
Arguments:
|
code » | ||||
![]()
Indicates maps were successfully sent on the channel.
Arguments:
|
code » | ||||
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 » | ||||
Gets any parameters that should be added at the time another connection is
made to the server.
Arguments:
Returns: !Object
Extra parameter keys and values to add to the
requests.
|
code » | ||||
Gets the URI of an image that can be used to test network connectivity.
Arguments:
Returns: ?goog.Uri
A custom URI to load for the network test.
|
code » | ||||
Gets whether this channel is currently active. This is used to determine the
length of time to wait before retrying.
Arguments:
Returns: boolean
Whether the channel is currently active.
|
code » | ||||
![]()
Whether it's okay to make a request to the server. A handler can return
false if the channel should fail. For example, if the user has logged out,
the handler may want all requests to fail immediately.
Arguments:
Returns: WebChannelBase.Error
An error code. The code should
return WebChannelBase.Error.OK to indicate it's okay. Any other
error code will cause a failure.
|
code » |
![]()
No description.
|
Code » |