net.WebChannel
A WebChannel represents a logical bi-directional channel over which the client communicates with a remote server that holds the other endpoint of the channel. A WebChannel is always created in the context of a shared WebChannelTransport instance. It is up to the underlying client-side and server-side implementations to decide how or when multiplexing is to be enabled.

Inheritance

Constructor

goog.net.WebChannel()

Instance Methods

Public Protected Private
getRuntimeProperties() !goog.net.WebChannel.RuntimeProperties
No description.
Returns: !goog.net.WebChannel.RuntimeProperties  The runtime properties of the WebChannel instance.
code »
send(message)
Sends a message to the server that maintains the other end point of the WebChannel.
Arguments:
message : !goog.net.WebChannel.MessageData
The message to send.
code »

Instance Properties

close :
Close the WebChannel.
Code »
open :
Open the WebChannel against the URI specified in the constructor.
Code »

Static Properties

goog.net.WebChannel.MessageData :
Types that are allowed as message data.
Code »
goog.net.WebChannel.Options :
Configuration spec for newly created WebChannel instances. WebChannels are configured in the context of the containing WebChannelTransport. The configuration parameters are specified when a new instance of WebChannel is created via WebChannelTransport. messageHeaders: custom headers to be added to every message sent to the server. messageUrlParams: custom url query parameters to be added to every message sent to the server. concurrentRequestLimit: the maximum number of in-flight HTTP requests allowed when SPDY is enabled. Currently we only detect SPDY in Chrome. This parameter defaults to 10. When SPDY is not enabled, this parameter will have no effect. supportsCrossDomainXhr: setting this to true to allow the use of sub-domains (as configured by the server) to send XHRs with the CORS withCredentials bit set to true. testUrl: the test URL for detecting connectivity during the initial handshake. This parameter defaults to "//test".
Code »

Enumerations

goog.net.WebChannel.ErrorStatus :
WebChannel level error conditions.
Constants:
NETWORK_ERROR
No description.
OK
No description.
SERVER_ERROR
No description.
Code »
goog.net.WebChannel.EventType :
Common events fired by WebChannels.
Constants:
CLOSE
No description.
ERROR
No description.
MESSAGE
No description.
OPEN
No description.
Code »

Package net

Package Reference