MessagePort

One end of a two-way message channel created with MessageChannel, which can be transferred so two contexts talk directly.

In more detail

Each MessageChannel has two ports, one for each side. Transferring a port to a worker gives it a private line to another context without routing messages through the page.

Related terms

Taught in

References