mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
auto sync new message in test ui
This commit is contained in:
parent
e12d87c6ba
commit
b708d5c834
1 changed files with 6 additions and 1 deletions
|
|
@ -198,6 +198,11 @@
|
|||
await this.loadContacts();
|
||||
});
|
||||
|
||||
this.connection.on(Constants.PushCodes.MsgWaiting, async (event) => {
|
||||
console.log("MsgWaiting", event);
|
||||
await this.syncNextMessage();
|
||||
});
|
||||
|
||||
this.connection.on(Constants.ResponseCodes.ExportContact, async (event) => {
|
||||
console.log("ExportContact", event);
|
||||
});
|
||||
|
|
@ -374,7 +379,7 @@
|
|||
},
|
||||
async setPath(contact) {
|
||||
await this.connection.setContactPath(contact, [
|
||||
0xf4,
|
||||
0xd2,
|
||||
]);
|
||||
},
|
||||
bytesToHex(uint8Array) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue