mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
add missing event listeners
This commit is contained in:
parent
b3611f58ee
commit
305ef81b01
1 changed files with 4 additions and 0 deletions
|
|
@ -383,6 +383,10 @@ class Connection extends EventEmitter {
|
|||
reject();
|
||||
}
|
||||
|
||||
// listen for events
|
||||
this.once(Constants.ResponseCodes.Ok, onOk);
|
||||
this.once(Constants.ResponseCodes.Err, onErr);
|
||||
|
||||
// compose message
|
||||
const txtType = Constants.TxtTypes.Plain;
|
||||
const senderTimestamp = Math.floor(Date.now() / 1000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue