mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 22:00:58 +00:00
c722415e74
Normally, a user of WebSerialTransport would call `connect` to display a prompt to the user so they can select a device. However, `connect` doesn't work in webworkers, since they can't call `navigator.serial.requestPort`. This CL makes `connectPort` public, which connects to an existing serial port, so webworkers can use WebSerialTransport. Change-Id: I79bd7ad163aaf0a3623057d326eb58304a80ca14 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/20060 Reviewed-by: Paul Mathieu <paulmathieu@google.com> Pigweed-Auto-Submit: Matthew Soulanille <msoulanille@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> |
||
---|---|---|
.. | ||
src | ||
types | ||
BUILD | ||
BUILD.gn | ||
docs.rst | ||
README.md | ||
rollup.config.js | ||
web_bundle.bzl |