MrSwitch/Toobify — Issue #1: rev++ and setInterval(doStuff, 200) in rend.js
Author: coolaj86
Created: 2012-03-03 11:13:05+00:00
State: open

I think that those things are artifacts of not being able to figure out how to get it work the way that would intuitively makes sense?

I found that `events.ports` is just freaking weird, but you can get around it by pushing `event.ports[0]` onto an array and then iterating over that array to send the message to both the remote and receiver.

See here if you're interested:

http://coolaj86.github.com/html5-shared-web-worker-examples

https://github.com/coolaj86/html5-shared-web-worker-examples

All those silent errors had me struggling with this one, but it works now.