---
title: "Comment by Gabriel E on \"Build a chat app in 9 minutes with AWS Amplify & Next JS\" | Hashnode"
description: "Great blog, thank you. One minor recommendation, to unsubscribe from subscription (or even within a timer). return () =&gt; { subscription .unsubscribe(); }"
url: "https://hashnode.com/posts/aws-amplify-live-chat/609f8a36ebf598658125a988/comment/616f542741c1b75f924d9b4f"
---

[Discussion](https://hashnode.com/posts/aws-amplify-live-chat/609f8a36ebf598658125a988)

Comment [Build a chat app in 9 minutes with AWS Amplify & Next JS](https://hashnode.com/posts/aws-amplify-live-chat/609f8a36ebf598658125a988)

[Gabriel E](https://hashnode.com/@gabs79)

[Oct 19, 2021](https://hashnode.com/posts/aws-amplify-live-chat/609f8a36ebf598658125a988/comment/616f542741c1b75f924d9b4f)

Great blog, thank you. One minor recommendation, to unsubscribe from subscription (or even within a timer).

```
return () => {
    subscription.unsubscribe();
  }
```
