W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > October 2016

[web-bluetooth] Pull Request: Allow UAs to reject concurrent use of 6 functions.

From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
Date: Thu, 20 Oct 2016 22:42:02 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <pull_request.opened-90294633-1477003320-sysbot+gh@w3.org>
jyasskin has just submitted a new pull request for 
https://github.com/WebBluetoothCG/web-bluetooth:

== Allow UAs to reject concurrent use of 6 functions. ==
Preview at 
https://api.csswg.org/bikeshed/?url=https://raw.githubusercontent.com/jyasskin/web-bluetooth-1/in-progress-error/index.bs#dom-bluetoothremotegattserver-connect.

* GattServer.connect()
* Characteristic.readValue()
* Characteristic.writeValue()
* Characteristic.startNotifications()
* Descriptor.readValue()
* Descriptor.writeValue()

This is uncomfortable because while serializing within a single realm
will reduce the frequency of these NetworkErrors, separate realms and
possibly other applications entirely can also cause these errors, and
the only way to recover is to retry and hope it doesn't happen again.

We're discussing the constraints imposed by the OS and the long-term
plan in #188. Any change should reduce the number of exceptions and so
be backward-compatible.

See https://github.com/WebBluetoothCG/web-bluetooth/pull/316
Received on Thursday, 20 October 2016 22:42:10 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 20 October 2016 22:42:11 UTC