search

goog.net.xpc.NativeMessagingTransport

Provided By
Extends
All Implemented Interfaces

The native messaging transport

Uses document.postMessage() to send messages to other documents. Receiving is done by listening on 'message'-events on the document.

new NativeMessagingTransport( channel, peerHostname, opt_domHelper, opt_oneSidedHandshake, opt_protocolVersion )

Parameters
channel(goog.net.xpc.CrossPageChannel|null)

The channel this transport belongs to.

peerHostnamestring

The hostname (protocol, domain, and port) of the peer.

opt_domHelper(goog.dom.DomHelper|null)=

The dom helper to use for finding the correct window/document.

opt_oneSidedHandshakeboolean=

If this is true, only the outer transport sends a SETUP message and expects a SETUP_ACK. The inner transport goes connected when it receives the SETUP.

opt_protocolVersionnumber=

Which version of its setup protocol the transport should use. The default is '2'.

Instance Methods

Instance Properties