It's possible?<div><br></div><div>inside the myworker.js:</div><div><div><br></div></div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<div><div>onmessage = function() {</div><div>  //why you don't call me?</div><div>}</div><div><br></div><div>while (true) { </div></div><div>  doSomething();</div><div>  processMessages(); //check for waiting message in the message queue</div>
<div>}</div></blockquote><div><br></div><div> </div>