Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Tags all messages with IDs #131
This is a further patch for #126 since it doesn't seem fully resolved. I'm now tagging all outgoing messages to the worker with an ID so we can ensure that the correct callback is executed when the response comes in from the worker. This is on the assumption that worker.onmessage is too brittle for our case, and we have a race condition in terms of which callback is being executed.