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

Method broadcast

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

* Broadcasts a message to all other AMP documents under the same viewer. It * will attempt to deliver messages when the messaging channel has been * established, but it will not fail if the channel is timed out. * * @param {!JsonObject} message * @return {!Promise } a Promise

(message)

Source from the content-addressed store, hash-verified

203 * @return {!Promise<boolean>} a Promise of success or not
204 */
205 broadcast(message) {}
206
207 /**
208 * Registers receiver for the broadcast events.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected