PreviewReceiver
The site’s end of the bridge, framework-agnostic — <PreviewBridge> is a thin React wrapper over it.
Properties
Section titled “Properties”composerOrigin
Section titled “composerOrigin”
readonlycomposerOrigin:string|null
The origin Composer turned out to speak from — null until the first accepted message.
Methods
Section titled “Methods”dispose()
Section titled “dispose()”dispose():
void
Returns
Section titled “Returns”void
postEdit()
Section titled “postEdit()”postEdit(
pin,kind,target):void
Parameters
Section titled “Parameters”number
target
Section titled “target”Returns
Section titled “Returns”void
postError()
Section titled “postError()”postError(
code,message):void
Parameters
Section titled “Parameters”string
message
Section titled “message”string
Returns
Section titled “Returns”void
postNavigated()
Section titled “postNavigated()”postNavigated(
path):void
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
postRendered()
Section titled “postRendered()”postRendered(
seq,pins):void
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
postStandalone()
Section titled “postStandalone()”postStandalone(
keys):void
Parameters
Section titled “Parameters”string[]
Returns
Section titled “Returns”void
ready()
Section titled “ready()”ready():
void
Announce the bridge. Before an origin is known this goes to every allowed origin; the browser delivers to whichever one actually holds the parent.
Returns
Section titled “Returns”void