Tutorial: Window.getSharedWorkers

Window.getSharedWorkers

Retrieves information on all Shared Workers. It returns an array of ShareWorkerInfo.

Example

    const winOption = {
        name:'child',
        defaultWidth: 300,
        defaultHeight: 300,
        url: 'http://mdn.github.io/simple-shared-worker/index2.html',
        frame: true,
        autoShow: true
    };
    const win = await fin.Window.create(winOption);
    const sharedWorkers = await win.getSharedWorkers();