electron/spec/fixtures/workers/shared_worker.js
2014-07-09 15:55:01 +08:00

7 lines
152 B
JavaScript

onconnect = function(event) {
var port = event.ports[0];
port.start();
port.onmessage = function(event) {
port.postMessage(event.data);
}
}