Closed advir1 closed 5 years ago
https://github.com/InteractiveAdvertisingBureau/SIVIC/blob/5af81aa12157e4d4377455e7ba73fda184c3de52/examples/sivic_protocol.js#L41
Should be: const messageId = this.nextMessageId_++;
Ah good catch, this will definitely be asynchronous. I wonder if just putting the incrementation on a single line is adequate or if this needs some form of await/mutex.
I'm going to do this in a separate PR.
https://github.com/InteractiveAdvertisingBureau/SIVIC/blob/5af81aa12157e4d4377455e7ba73fda184c3de52/examples/sivic_protocol.js#L41
Should be: const messageId = this.nextMessageId_++;