# Squid pour Duniter, épisode 2

**URL:** https://forum.duniter.org/t/squid-pour-duniter-episode-2/11713
**Category:** Indexers
**Tags:** subsquid
**Created:** [9 January 2024 23:00 UTC](https://forum.duniter.org/t/squid-pour-duniter-episode-2/11713 "2024-01-09T23:00:00Z")
**Posts on this page:** 1
**Showing post:** 41

<div class="post-metadata">

### Author: ![poka](https://forum.duniter.org/user_avatar/forum.duniter.org/poka/32/6827_2.png) [@poka](https://forum.duniter.org/u/poka)
#### Post date: [14 January 2024 01:19 UTC](https://forum.duniter.org/t/squid-pour-duniter-episode-2/11713/41 "2024-01-14T01:19:33Z")

</div>

@HugoTrentesaux pour le moment ton instance Squid ne propose pas de subscription, mais il suffit de les activer avec une option côté serveur:

> OpenReader supports [GraphQL subscriptions](https://www.apollographql.com/docs/react/data/subscriptions/) via live queries. To use these, a client opens a websocket connection to the server and sends a `subscription` query there. The query body is then repeatedly executed (every 5 seconds by default) and the results are sent to the client whenever they change.  
> **To enable subscriptions** , add the additional --subscriptions flag to the squid-graphql-server startup command. The poll interval is configured with the --subscription-poll-interval flag. For details and a full list of available options, run
> 
> `npx squid-graphql-server --help`

> **[Subscriptions | Subsquid](https://docs.subsquid.io/sdk/resources/graphql-server/subscriptions/)**
>
> Subscribe to updates over a websocket

---

_[View the full topic](https://forum.duniter.org/t/squid-pour-duniter-episode-2/11713)._
