MCPcopy
hub / github.com/google/tamperchrome / postMessageToPort

Method postMessageToPort

v2/ui/e2e/src/app.po.ts:31–36  ·  view source on GitHub ↗
(portId: number, msg: any)

Source from the content-addressed store, hash-verified

29 }
30
31 postMessageToPort(portId: number, msg: any) {
32 browser.executeScript((portIdParam, msgParam) => {
33 const ports = window['.ports'];
34 ports[portIdParam].postMessage(msgParam);
35 }, portId, msg);
36 }
37
38 async createMessageChannel(): Promise<[number, number]> {
39 return browser.executeScript(() => {

Callers

nothing calls this directly

Calls 1

postMessageMethod · 0.80

Tested by

no test coverage detected