mirror of
https://github.com/electron/electron.git
synced 2026-01-14 09:58:04 -05:00
8 lines
163 B
JavaScript
8 lines
163 B
JavaScript
this.onconnect = function (event) {
|
|
const port = event.ports[0];
|
|
port.start();
|
|
port.onmessage = function (event) {
|
|
port.postMessage(event.data);
|
|
};
|
|
};
|