Several bugs were found (and fixed):
src/client/index.js:71
the following if() was equivalent to if (false in obj)
src/client/dom/element.js:207
the following if() was equivalent to if (!element || false in element)
src/client/rewrite/html.js:179
an undefined iterate() was referenced
What I did:
- juggle the bare client data between the page and SW
- mock the WebSocket class to perform async ops
There are still bugs:
- new WebSocket().constructor is the mock class
- eventTarget() feels very stomp-like