[web-bluetooth] Worker support (#571)

reillyeon has just created a new issue for https://github.com/WebBluetoothCG/web-bluetooth:

== Worker support ==
Splitting this issue off from #422 because `Worker` (i.e. Dedicated Worker) support in particular is much easier than Service Worker support because there is always a `Document` associated with the worker's Javascript context. This is the model used by the worker support in the Web Serial and WebUSB APIs. Usage of those APIs is "charged" to the document which owns the worker. The only architectural blocker for supporting Web Bluetooth in this type of worker is the still-experimental [`getDevices()`](https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetooth-getdevices) method or support for transferring `BluetoothDevice` instances using `postMessage()`. The former being how Web Serial and WebUSB handle getting access to a device object from a worker.

Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/571 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 4 January 2022 21:59:32 UTC