// Local qr.reveal() // Current socket.emit("RevealCorrect", {quizinstance: quizinstance}); // All socket.off('DiscoveryResponse'); socket.on('DiscoveryResponse', res => socket.emit("RevealCorrect", {quizinstance: res.quizinstance})); for (let i = 10000; i < 50000; i++) socket.emit("DiscoveryRequest", {code: i + ''});