mirror of
https://github.com/logos-messaging/js-noise.git
synced 2026-01-02 13:43:08 +00:00
fix: increase pairing timeout to 2m
This commit is contained in:
parent
984dc3a8a2
commit
a6c9f857e4
@ -78,10 +78,13 @@ async function main() {
|
||||
console.log("Initiator");
|
||||
|
||||
const pairingObj = new noise.WakuPairing(sender, receiver, myStaticKey, pairingParameters);
|
||||
const pExecute = pairingObj.execute(120000); // timeout after 2m
|
||||
|
||||
confirmAuthCodeFlow(pairingObj);
|
||||
|
||||
try {
|
||||
console.log("executing handshake...");
|
||||
const codecs = await pairingObj.execute();
|
||||
const codecs = await pExecute;
|
||||
alert("Handshake completed!");
|
||||
// TODO: enable a form so users can send messages
|
||||
} catch (err) {
|
||||
@ -103,7 +106,7 @@ async function main() {
|
||||
console.log("Receiver");
|
||||
|
||||
const pairingObj = new noise.WakuPairing(sender, receiver, myStaticKey, new noise.ReceiverParameters());
|
||||
const pExecute = pairingObj.execute();
|
||||
const pExecute = pairingObj.execute(120000); // timeout after 2m
|
||||
|
||||
confirmAuthCodeFlow(pairingObj);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user