Sending data to a Web Worker

Now that we've seen how to send messages back and forth, we can start to actually put these Web Workers to work. In this recipe, we'll see that you can send data to and from a Web Worker.

Get ECMAScript Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.