- From: Giovanni Ortuno via GitHub <sysbot+gh@w3.org>
- Date: Sat, 16 Jan 2016 03:03:08 +0000
- To: public-web-bluetooth-log@w3.org
We should be good on the implementation side. More details: We send the events through [GattCharacteristicValueChanged](https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/bluetooth/bluetooth_dispatcher_host.cc&l=563) where we post a task to notify the dispatcher that a characteristic changed; this way we resolve the promise first. In order to avoid sending unnecessary characteristic changed events to the dispatcher, the dispatcher host only sends events after a listener has been added to the characteristic, which requires another message from the dispatcher to the host. It is in between this message that the js context could miss an event. One solution we considered is just sending all messages to the dispatcher that way we avoid that extra message and no events get lost. -- GitHub Notification of comment by g-ortuno Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/pull/200#issuecomment-172149850 using your GitHub account
Received on Saturday, 16 January 2016 03:03:10 UTC