net.WebChannelTransport
A WebChannelTransport instance represents a shared context of logical connectivity between a browser client and a remote origin. Over a single WebChannelTransport instance, multiple WebChannels may be created against different URLs, which may all share the same underlying connectivity (i.e. TCP connection) whenever possible. When multi-domains are supported, such as CORS, multiple origins may be supported over a single WebChannelTransport instance at the same time. Sharing between different window contexts such as tabs is not addressed by WebChannelTransport. Applications may choose HTML5 shared workers or other techniques to access the same transport instance across different window contexts.

Inheritance

Constructor

goog.net.WebChannelTransport()

Instance Methods

Public Protected Private
createWebChannel(urlopt_options) !goog.net.WebChannel
Create a new WebChannel instance. The new WebChannel is to be opened against the server-side resource as specified by the given URL. See goog.net.WebChannel for detailed semantics.
Arguments:
url : string
The URL path for the new WebChannel instance.
opt_options : !goog.net.WebChannel.Options=
Configuration for the new WebChannel instance. The configuration object is reusable after the new channel instance is created.
Returns: !goog.net.WebChannel  the newly created WebChannel instance.
code »

Static Properties

goog.net.WebChannelTransport.LATEST_VERSION_ :
The latest protocol version. The protocol version is requested from the server which is responsible for terminating the underlying wire protocols.
Code »

Package net

Package Reference