mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
9 lines
288 B
JavaScript
9 lines
288 B
JavaScript
|
const dispatch = require('../../src/dispatch/worker-dispatch');
|
||
|
const DispatchTestService = require('./dispatch-test-service');
|
||
|
|
||
|
dispatch.setService('RemoteDispatchTest', new DispatchTestService());
|
||
|
|
||
|
dispatch.waitForConnection.then(() => {
|
||
|
dispatch.call('test', 'onWorkerReady');
|
||
|
});
|