postmessage
How to make postMessage type-safe in under 350 bytes
Typed-channel is a library for typed messages and requests across workers, iframes, tabs, and event buses.
Typed-channel is a library for typed messages and requests across workers, iframes, tabs, and event buses.