SandboxReceiver
Message receiver for sandbox iframe using postMessage.
Example:
const receiver = new SandboxReceiver({
FOO: this.handleFoo,
BAR: this.handleBar,
}, this);
Constructor Summary
Public Constructor | ||
public |
constructor(handlers: Object<string, SandboxReceiver~ReceiverFunction>, thisObj: Object) |
Public Constructors
public constructor(handlers: Object<string, SandboxReceiver~ReceiverFunction>, thisObj: Object) source
Params:
Name | Type | Attribute | Description |
handlers | Object<string, SandboxReceiver~ReceiverFunction> | Mappings of message types to handler functions. |
|
thisObj | Object |
|
|