Tutorial: Window.inspectSharedWorkerById

Window.inspectSharedWorkerById

Inspects the shared worker based on its ID.

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();
    await win.inspectSharedWorkerById(sharedWorkers[0].id);