mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
use base class methods for disconnected event
This commit is contained in:
parent
c09ad0514c
commit
09ff8771d8
3 changed files with 6 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ class BleConnection extends Connection {
|
|||
|
||||
// listen for ble disconnect
|
||||
this.bleDevice.addEventListener("gattserverdisconnected", () => {
|
||||
this.emit("disconnected");
|
||||
this.onDisconnected();
|
||||
});
|
||||
|
||||
// connect to gatt server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue