Join Bill Weinman for an in-depth discussion in this video Communicating with the worker, part of HTML5: Background Processes with Web Workers.
There are basically two methods of communicating with workers, and we are going…to take a look at both of them in this movie.…First we are going to look at the IDL attribute method.…IDL stands for interface definition language. It's intended to be a language-…independent way of communicating with DOM objects, and it doesn't necessarily…work out that way, but it does work.…What I have open here is a working copy of workerSetup-done.html. It's where we…left off in the last movie.…And I've saved it as workerComm- working.html. And I am editing on the server…because we need to be testing on the server, and I have an editor that will…do that through SFTP.…
I also have opened the done version of this, workerComm-done.html, because we are…going to be doing some copy and paste, because this is kind of a lot to type.…But anyway, this is our starting place. Let's just page through this for the…benefit of those who are typing things in. And that's what we have there.…And I am going to actually start at the bottom here and I am going to copy and…
- Deploying a worker
- Detecting browser support
- Communicating with workers
- Understanding API differences in shared workers