electron/spec/fixtures/workers/shared_worker.js

8 lines
152 B
JavaScript
Raw Normal View History

2014-07-09 07:55:01 +00:00
onconnect = function(event) {
var port = event.ports[0];
port.start();
port.onmessage = function(event) {
port.postMessage(event.data);
}
}