Sha256: de0ffd42ad91564fc6fbb4d65009d43de8407bee414a125f2144b5d2fe68f385

Contents?: true

Size: 983 Bytes

Versions: 6

Compression:

Stored size: 983 Bytes

Contents

// Copyright 2011 The Closure Library Authors. All Rights Reserved.

// Use of this source code is governed by the Apache License, Version 2.0.
// See the COPYING file for details.

/**
 * @fileoverview A web worker for integration testing the PortPool class.
 *
 * @nocompile
 */

self.CLOSURE_BASE_PATH = '../../';
importScripts('../../bootstrap/webworkers.js');
importScripts('../../base.js');

// The provide is necessary to stop the jscompiler from thinking this is an
// entry point and adding it into the manifest incorrectly.
goog.provide('goog.messaging.testdata.portnetwork_worker2');
goog.require('goog.messaging.PortCaller');
goog.require('goog.messaging.PortChannel');

function startListening() {
  var caller = new goog.messaging.PortCaller(
      new goog.messaging.PortChannel(self));

  caller.dial('main').registerService('sendToFrame', function(msg) {
    msg.push('worker2');
    caller.dial('frame').send('sendToWorker1', msg);
  }, true);
}

startListening();

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
k4compiler-0.0.1 third_party/closure-library/closure/goog/messaging/testdata/portnetwork_worker2.js
middleman-wizard-template-1.0.4 lib/middleman-wizard-template/template/closure/library/closure/goog/messaging/testdata/portnetwork_worker2.js
middleman-wizard-template-1.0.3 lib/middleman-wizard-template/template/closure/library/closure/goog/messaging/testdata/portnetwork_worker2.js
middleman-wizard-template-1.0.2 lib/middleman-wizard-template/template/closure/library/closure/goog/messaging/testdata/portnetwork_worker2.js
middleman-wizard-template-1.0.1 lib/middleman-wizard-template/template/closure/library/closure/goog/messaging/testdata/portnetwork_worker2.js
middleman-wizard-template-1.0.0.pre.1 lib/middleman-wizard-template/template/closure/library/closure/goog/messaging/testdata/portnetwork_worker2.js