---
title: "Discussion on \"Iframes should have an api\" | Hashnode"
description: "Discussion on \"Iframes should have an api\". Who said apis are just for the server side?"
url: "https://hashnode.com/posts/iframes-should-have-an-api/6ae0019a1ce6736e012b563b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Iframes should have an api](https://blog.danielbrain.ai/iframes-should-have-an-api?utm_source=hashnode&utm_medium=feed)

Who said apis are just for the server side?

Oct 27 · 13 min read · blog.danielbrain.ai  
Read the article

## Written by

[Daniel Brain](https://hashnode.com/@daniel-onetext)

@daniel-onetext · San Jose, USA

  
[View profile](https://hashnode.com/@daniel-onetext)

CTO at OneText

## Responses 2

Markdown supported · ⌘↵ to post

[dreainno](https://hashnode.com/@dreainno)

[Oct 28](https://hashnode.com/posts/iframes-should-have-an-api/6ae0019a1ce6736e012b563b/comment/6ae1aecf561d9fb8b803be62)

While working with iframes, I always got two issues: one is that the external iframe script is always getting blocked by the parent site, and another is that for the communication, we need to use the postMessage method to make the communication between parent and child

[Crownforge](https://hashnode.com/@thecrownforge)

[Oct 27](https://hashnode.com/posts/iframes-should-have-an-api/6ae0019a1ce6736e012b563b/comment/6ae078c887f3dfa3c629521c)

What happens to the price subscription if the caller disappears without calling stop? Releasing the callback reference makes sense, but I would also want a way to stop the underlying subscription when that connection ends
