mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
simple cli console for remote repeater management
This commit is contained in:
parent
e4577c40ff
commit
32928e3a96
2 changed files with 113 additions and 26 deletions
|
|
@ -654,7 +654,7 @@ class Connection extends EventEmitter {
|
|||
});
|
||||
}
|
||||
|
||||
sendTextMessage(contactPublicKey, text) {
|
||||
sendTextMessage(contactPublicKey, text, type) {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
try {
|
||||
|
||||
|
|
@ -677,7 +677,7 @@ class Connection extends EventEmitter {
|
|||
this.once(Constants.ResponseCodes.Err, onErr);
|
||||
|
||||
// compose message
|
||||
const txtType = Constants.TxtTypes.Plain;
|
||||
const txtType = type ?? Constants.TxtTypes.Plain;
|
||||
const attempt = 0;
|
||||
const senderTimestamp = Math.floor(Date.now() / 1000);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue