electron/spec/fixtures/workers/shared_worker.js

8 lines
156 B
JavaScript
Raw Normal View History

2016-03-25 20:03:49 +00:00
this.onconnect = function (event) {
var port = event.ports[0]
port.start()
port.onmessage = function (event) {
port.postMessage(event.data)
}
}