graphql-python / gql

A GraphQL client in Python
https://gql.readthedocs.io
MIT License
1.53k stars 178 forks source link

IS there a way to know when a subscription is started to start sending messages? #484

Closed dma-rep092 closed 3 months ago

dma-rep092 commented 3 months ago

My question is simple: Is there a way to know when a subscription is started to start sending messages?

leszekhanusz commented 3 months ago

In general, no. You'll know the subscribe query was successful only when the first message has been sent by the server and received by the client.

However some backends may decide to send a first subscription message as soon as the subscribe query is received.