Fork me on GitHub

BroadcastChannel Test

This will send a message from the main-context, await until the iframe and the web-worker answered, then repeat until all messages have been send.


MessageCount: 0

LeaderElection Test

This will spawn several iframes which all want to be leader. No matter what happens, exactly one iframe should be leader.


WebWorker Test

This will send a message from the main-context to the worker and wait for a response message. This runs many times with random timings to ensure there are no edge cases where messages are missing or in the wrong order.


MessageCount: 0