Requests a browser serial port handle via the Web Serial API, for use with
WasmSerialTransportService.fromRtu / .fromAscii (or
WasmRtuTransportService.make / WasmAsciiTransportService.make directly).
Call this from a browser user-gesture handler, such as a click handler, because
the Web Serial API may require transient user activation to show its chooser.
The helper loads the browser binding before requesting the port, so it does not
itself call the browser API synchronously in the handler.
Requests a browser serial port handle via the Web Serial API, for use with WasmSerialTransportService.fromRtu /
.fromAscii(orWasmRtuTransportService.make/WasmAsciiTransportService.makedirectly).Call this from a browser user-gesture handler, such as a click handler, because the Web Serial API may require transient user activation to show its chooser. The helper loads the browser binding before requesting the port, so it does not itself call the browser API synchronously in the handler.