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

Method sendMessage

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

* Sends the message to the viewer without waiting for any response. * If cancelUnsent is true, the previous message of the same message type will * be canceled. * * This is a restricted API. * * @param {string} eventType * @param {?JsonObject|string|undefined} data * @param {

(eventType, data, cancelUnsent = false)

Source from the content-addressed store, hash-verified

179 * @param {boolean=} cancelUnsent
180 */
181 sendMessage(eventType, data, cancelUnsent = false) {}
182
183 /**
184 * Sends the message to the viewer and wait for response.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected