Working with dedicated workers

Dedicated workers can communicate with their spawning script, listening to certain events which trigger when either of the scripts sends/receives a message.

These events can be handled in both scripts (worker and main script) using certain event handlers. Let us learn how to achieve that.

Get Learn ECMAScript - Second Edition 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.