Channel messaging
Widely available
Channel messaging communicates one-to-one between browsing contexts on the same origin, such as between <iframe>
elements or two documents using a shared worker.
To learn more, see
MessageChannel,
MessageChannel: MessageChannel() constructor,
MessageChannel: port1 property,
MessageChannel: port2 property,
MessageEvent: ports property,
MessagePort,
MessagePort: close() method,
MessagePort: message event,
MessagePort: postMessage() method,
MessagePort: start() method at MDN.
Compatibility (view on caniuse.com)
- Chrome 4 Released on 2010-01-25
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 41 Released on 2015-09-22
- Firefox for Android 41 Released on 2015-09-22
- Safari 5 Released on 2010-06-07
- Safari on iOS 4.2 Released on 2010-11-22
Specifications
- HTML Standard (#channel-messaging), from HTML Workstream (WHATWG).