MCPcopy Create free account
hub / github.com/ampproject/amphtml / setMessageDeliverer

Method setMessageDeliverer

src/service/viewer-interface.js:163–163  ·  view source on GitHub ↗

* Provides a message delivery mechanism by which AMP document can send * messages to the viewer. * @param {function(string, (?JsonObject|string|undefined), boolean):(!Promise<*>|undefined)} deliverer * @param {string} origin

(deliverer, origin)

Source from the content-addressed store, hash-verified

161 * @param {string} origin
162 */
163 setMessageDeliverer(deliverer, origin) {}
164
165 /**
166 * @return {?function(string, (?JsonObject|string|undefined), boolean):(!Promise<*>|undefined)}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected