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

Method onBroadcast

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

* Registers receiver for the broadcast events. * @param {function(!JsonObject)} handler * @return {!UnlistenDef}

(handler)

Source from the content-addressed store, hash-verified

210 * @return {!UnlistenDef}
211 */
212 onBroadcast(handler) {}
213
214 /**
215 * Resolves when there is a messaging channel established with the viewer.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected