Skip to main content

Module ready

Module ready 

Source
Expand description

Comlink has no handshake, so a request posted before the remote’s expose listener attaches is lost. The serving side announces readiness with a sentinel once exposed; both comlink listeners ignore it (no type, no id).

Functions§

announce
Announces from a worker that its services are exposed and requests posted from now on will be served.
wait
Resolves once the worker behind target has announced its readiness.