MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / postRuntimeMessage

Function postRuntimeMessage

packages/core/src/runtime/bridge.ts:26–33  ·  view source on GitHub ↗
(payload: RuntimeOutboundMessage)

Source from the content-addressed store, hash-verified

24};
25
26export function postRuntimeMessage(payload: RuntimeOutboundMessage): void {
27 try {
28 window.parent.postMessage(payload, "*");
29 } catch (err) {
30 // Cross-frame posting can throw if the parent is gone or origin-isolated.
31 swallow("bridge.postMessage", err);
32 }
33}
34
35type BridgeControlData = Partial<RuntimeBridgeControlMessage>;
36type ControlHandler = (data: BridgeControlData, deps: BridgeDeps) => void;

Callers 10

syncMediaForCurrentStateFunction · 0.90
postStateFunction · 0.90
postTimelineFunction · 0.90

Calls 2

swallowFunction · 0.90
postMessageMethod · 0.80

Tested by

no test coverage detected