2016-03-25 14:03:49 -06:00
|
|
|
this.onconnect = function (event) {
|
2020-03-20 14:28:31 -06:00
|
|
|
const port = event.ports[0];
|
|
|
|
port.start();
|
2016-03-25 14:03:49 -06:00
|
|
|
port.onmessage = function (event) {
|
2020-03-20 14:28:31 -06:00
|
|
|
port.postMessage(event.data);
|
|
|
|
};
|
|
|
|
};
|