MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / postMessage

Method postMessage

packages/chrome-extension-mock/runtime.ts:39–43  ·  view source on GitHub ↗
(message: any)

Source from the content-addressed store, hash-verified

37 url: window.location.href,
38 },
39 postMessage(message: any) {
40 messageListener.forEach((callback) => {
41 callback(message);
42 });
43 },
44 onMessage: {
45 addListener(callback: (message: any) => void) {
46 targetPort.messageListener.push(callback);

Callers

nothing calls this directly

Calls 2

callbackFunction · 0.85
forEachMethod · 0.80

Tested by

no test coverage detected