mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
tell device what protocol version we support when connected
This commit is contained in:
parent
e73632456d
commit
0210b5a438
6 changed files with 21 additions and 9 deletions
|
|
@ -17,8 +17,8 @@ class WebSerialConnection extends SerialConnection {
|
|||
});
|
||||
|
||||
// fire connected callback after constructor has returned
|
||||
setTimeout(() => {
|
||||
this.onConnected();
|
||||
setTimeout(async () => {
|
||||
await this.onConnected();
|
||||
}, 0);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue