MCPcopy
hub / github.com/ampproject/amphtml / on

Method on

third_party/subscriptions-project/swg.js:3984–3988  ·  view source on GitHub ↗

* @param {!function(new: T)} message * @param {function(?)} callback * @template T

(message, callback)

Source from the content-addressed store, hash-verified

3982 * @template T
3983 */
3984 on(message, callback) {
3985 this.getPortPromise_().then((port) => {
3986 port.on(message, callback);
3987 });
3988 }
3989
3990 /**
3991 * @param {!../proto/api_messages.Message} request

Callers 15

finalizeRunnerFunction · 0.45
brotliCompressFile_Function · 0.45
doServeFunction · 0.45
watchExtensionFunction · 0.45
compileJsFunction · 0.45
analyticsVendorConfigsFunction · 0.45
buildVendorConfigsFunction · 0.45
buildStoryLocalizationFunction · 0.45
startStorybookFunction · 0.45
compileCssFunction · 0.45
snapshotWebpagesFunction · 0.45

Calls 2

getPortPromise_Method · 0.95
thenMethod · 0.45

Tested by

no test coverage detected