messaging.PortNetwork
No description.

Inheritance

Constructor

goog.messaging.PortNetwork()

Instance Methods

Public Protected Private
Returns a message channel that communicates with the named context. If no such port exists, an error will either be thrown immediately or after a round trip with the operator, depending on whether this pool is the operator or a caller. If context A calls dial('B') and context B calls dial('A'), the two ports returned will be connected to one another.
Arguments:
name : string
The name of the context to get.
Returns: goog.messaging.MessageChannel  The channel communicating with the given context. This is either a goog.messaging.PortChannel or a decorator around a PortChannel, so it's safe to send MessagePorts across it. This will be disposed along with the PortNetwork.
code »

Static Properties

goog.messaging.PortNetwork.GRANT_CONNECTION_SERVICE :
The name of the service exported by the callers for adding a connection to another context.
Code »
goog.messaging.PortNetwork.REQUEST_CONNECTION_SERVICE :
The name of the service exported by the operator for creating a connection between two callers.
Code »

Package messaging

Package Reference