electron/spec/fixtures/workers/shared_worker.js
2016-03-30 17:00:31 -07:00

7 lines
156 B
JavaScript

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