Question about implementation

18 views
Skip to first unread message

Alex Shaw

unread,
Nov 14, 2022, 10:20:08 AM11/14/22
to web-bl...@chromium.org
Hello. Quick question: What is the behavior when scanning when there is more than one Bluetooth adapter? Use a single adapter or scan for devices across every adapter?
Minor question: Errors defined in bluetooth_error.cc end with a period. Most JS libraries specifically avoid having Errors/DOMExceptions end in periods. Why was the "end with period" style chosen?

I'm working on a port of Web Bluetooth to Node/Deno/Bun and want to make sure it's as compatible as possible with Chromium.

Thanks,
Alex Shaw

Reilly Grant

unread,
Nov 14, 2022, 11:32:47 AM11/14/22
to Alex Shaw, web-bl...@chromium.org
On Mon, Nov 14, 2022 at 10:20 AM Alex Shaw <alex.s...@gmail.com> wrote:
Hello. Quick question: What is the behavior when scanning when there is more than one Bluetooth adapter? Use a single adapter or scan for devices across every adapter?

I'm pretty sure that on all platforms we use the "default" adapter provided by the operating system.
 
Minor question: Errors defined in bluetooth_error.cc end with a period. Most JS libraries specifically avoid having Errors/DOMExceptions end in periods. Why was the "end with period" style chosen?

This file predates my work on Web Bluetooth. I don't know if there was any strong reasoning behind it. Error messages are not part of the specification.
 
I'm working on a port of Web Bluetooth to Node/Deno/Bun and want to make sure it's as compatible as possible with Chromium.

Thanks,
Alex Shaw

--
You received this message because you are subscribed to the Google Groups "web-bluetooth" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web-bluetoot...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/web-bluetooth/CAAm0DwAZFQtfn-fVKgdP8-G_WhZ8ZLAJWv78CZPD_W_UEJ5PZA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages