Path: blob/trunk/third_party/closure/goog/labs/net/webchanneltransportfactory.js
2868 views
// Copyright 2013 The Closure Library Authors. All Rights Reserved.1//2// Licensed under the Apache License, Version 2.0 (the "License");3// you may not use this file except in compliance with the License.4// You may obtain a copy of the License at5//6// http://www.apache.org/licenses/LICENSE-2.07//8// Unless required by applicable law or agreed to in writing, software9// distributed under the License is distributed on an "AS-IS" BASIS,10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.11// See the License for the specific language governing permissions and12// limitations under the License.1314/**15* @fileoverview Default factory for <code>WebChannelTransport</code> to16* avoid exposing concrete classes to clients.17*18*/1920goog.provide('goog.net.createWebChannelTransport');2122goog.require('goog.functions');23goog.require('goog.labs.net.webChannel.WebChannelBaseTransport');242526/**27* Create a new WebChannelTransport instance using the default implementation.28* Throws an error message if no default transport available in the current29* environment.30*31* @return {!goog.net.WebChannelTransport} the newly created transport instance.32*/33goog.net.createWebChannelTransport =34/** @type {function(): !goog.net.WebChannelTransport} */ (35goog.partial(36goog.functions.create,37goog.labs.net.webChannel.WebChannelBaseTransport));383940