oracle-samples / xfc

A javascript library for Cross Frame Communication
Apache License 2.0
17 stars 24 forks source link

Custom dispatch function #75

Closed jmcountryman closed 3 years ago

jmcountryman commented 3 years ago

Summary

Adds a dispatchFunction option to Provider.init.

Additional Details

For usage outside the context of iframes (e.g. a web app running in a webview), allows specifying a function to use to send messages to the Consumer instead of parent.postMessage.

jmcountryman commented 3 years ago

cc @mhemesath @roxjcalderon