#Trigger QR Event

3 messages · Page 1 of 1 (latest)

pallid crater
#

I want to trigger QR event on express endpoint instead of auto trigger it on application start-up

fickle nexus
#

router.get("/getqr", async (req, res) => {
client.once('qr', (qr) => {
console.log('QR RECIEVED: ', qr);
res.status(200).send(qr);
});
});

viral topaz
#

I would highly recommend keeping the QR string in a variable, updating it everytime the qr changes, and returning it to the endpoint