@cloudide/messaging

expose function among iframes with Promise support based on postMessage API

Usage no npm install needed!

<script type="module">
  import cloudideMessaging from 'https://cdn.skypack.dev/@cloudide/messaging';
</script>

README

Message protocol supporting function calls between iframes

Features

  • Support exposing function in iframe as asynchronous function returning Promise
  • Support to specify the target origin that needs to be called