function PortImpl(portId, opt_name) {
    this.portId_ = portId;
    this.name = opt_name;

    // Note: Keep these schemas in sync with the documentation in runtime.json
    var portSchema = {
      __proto__: null,
      name: 'port',
      $ref: 'runtime.Port',
    };
    var messageSchema = {
      __proto__: null,
      name: 'message',
      type: 'any',
      optional: true,
    };
    this.onDisconnect = createAnonymousEvent([portSchema]);
    this.onMessage = createAnonymousEvent([messageSchema, portSchema]);
  }
// which messages can be passed.
which messages can be passed.
which messages can be passed .
function PortImpl(portId, opt_name) {
    this.portId_ = portId;
    this.name = opt_name;
    var portSchema = {
      __proto__: null,
      name: 'port',
      $ref: 'runtime.Port',
    };
    var messageSchema = {
      __proto__: null,
      name: 'message',
      type: 'any',
      optional: true,
    };
    this.onDisconnect = createAnonymousEvent([portSchema]);
    this.onMessage = createAnonymousEvent([messageSchema, portSchema]);
  }
function PortImpl ( portId , opt_name ) { this . portId_ = portId ; this . name = opt_name ; var portSchema = { __proto__ : null , name : 'port' , $ref : 'runtime.Port' , } ; var messageSchema = { __proto__ : null , name : 'message' , type : 'any' , optional : true , } ; this . onDisconnect = createAnonymousEvent ( [ portSchema ] ) ; this . onMessage = createAnonymousEvent ( [ messageSchema , portSchema ] ) ; }
which messages can be passed.
which messages can be passed .
// Note: Keep these schemas in sync with the documentation in runtime.json