electron/spec/fixtures/workers/shared_worker.js
2018-09-29 09:17:00 +10:00

7 lines
158 B
JavaScript

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