I think you might want gattserverdisconnected : https://www.espruino.com/Reference#l_BluetoothDevice_gattserverdisconnected
gattserverdisconnected
It's an odd name, but for some reason it's what they chose for the Web Bluetooth spec.
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think you might want
gattserverdisconnected
: https://www.espruino.com/Reference#l_BluetoothDevice_gattserverdisconnectedIt's an odd name, but for some reason it's what they chose for the Web Bluetooth spec.