The goog.messaging.MultiChannel.VirtualChannel Class

goog.messaging.MultiChannel.VirtualChannel
> goog.Disposable

goog.messaging.MultiChannel.VirtualChannel(parent, name)

A message channel that proxies its messages over another underlying channel.

parent {goog.messaging.MultiChannel}
The MultiChannel which created this channel, and which contains the underlying MessageChannel that's used as the transport.
name {string}
The name of this virtual channel. Unique among the virtual channels in parent.

.addOnDisposeCallback(callback, opt_scope)

Inherited from goog.Disposable .

Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.

callback {!Function}
The callback function.
opt_scope {Object=}
An optional scope to call the callback in.

.connect()

This is a no-op, since the underlying channel is expected to already be initialized when it's passed in.

.creationStack {string}

Inherited from goog.Disposable .

If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.

.dispose()

Inherited from goog.Disposable .

Disposes of the object. If the object hasn't already been disposed of, calls {@link #disposeInternal}. Classes that extend {@code goog.Disposable} should override {@link #disposeInternal} in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.

returns {void}
Nothing.

.isConnected()

This always returns true, since the underlying channel is expected to already be initialized when it's passed in.

.isDisposed()

Inherited from goog.Disposable .

returns {boolean}
Whether the object has been disposed of.

.registerDisposable(disposable)

Inherited from goog.Disposable .

Associates a disposable object with this object so that they will be disposed together.

disposable {goog.disposable.IDisposable}
that will be disposed when this object is disposed.

.registerService()

.send()