mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
add helper functions for advert types
This commit is contained in:
parent
defef4bddf
commit
d9cfad9581
2 changed files with 15 additions and 4 deletions
|
|
@ -287,6 +287,14 @@ class Connection extends EventEmitter {
|
|||
});
|
||||
}
|
||||
|
||||
async sendFloodAdvert() {
|
||||
await this.sendCommandSendSelfAdvert(Constants.SelfAdvertTypes.Flood);
|
||||
}
|
||||
|
||||
async sendZeroHopAdvert() {
|
||||
await this.sendCommandSendSelfAdvert(Constants.SelfAdvertTypes.ZeroHop);
|
||||
}
|
||||
|
||||
getContacts() {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue