Octoyisus
NNormal
•Created by Octoyisus on 2/7/2025 in #🤝ask-a-question
Quiz answer synchroinization
Hi everyone, I have a question. I have this feature in which the users need to answer questions from a quiz. Any user in the room can answer, and the results are shown to everyone. Currently, I'm synchronizing with a model that uses two ints one to store the selected answer's index and another one just to increase it and use the didChange callback to process the result in each client. The issue is that sometimes the callback value is modified first and the called is launched before the answer value has been setted. I've managed to work around this problem by waiting a couple of milliseconds before updating the callback value. Is there any better way of doing this?
14 replies