third_party.pigweed.src/pw_web_ui
Matthew Soulanille c722415e74 pw_web_ui: Make connectPort public
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>
2020-11-04 15:37:57 +00:00
..
src pw_web_ui: Make connectPort public 2020-11-04 15:37:57 +00:00
types pw_web_ui: Upgrade rules_nodejs to 2.2.0 2020-11-04 14:54:17 +00:00
BUILD
BUILD.gn BUILD.gn files: Improve import formatting 2020-10-15 18:12:55 +00:00
docs.rst docs: Make labels consistent; remove boilerplate 2020-10-01 21:47:35 +00:00
README.md
rollup.config.js
web_bundle.bzl pw_web_ui: Upgrade rules_nodejs to 2.2.0 2020-11-04 14:54:17 +00:00

pw_web_ui: Tools for building web UIs