datadvance / DjangoChannelsGraphqlWs

Django Channels based WebSocket GraphQL server with Graphene-like subscriptions
MIT License
281 stars 85 forks source link

Run logic on unsubscribed #96

Open nikitaKaner opened 2 years ago

nikitaKaner commented 2 years ago

Hello, everyone!

I have a server with API that arrange all my clients. I want to send notification to all admins when some client is disconnected, with all information about it. I'm connecting my clients by its id in the database.

So... how can i run logic when graphql subscription client has unsubscribed?

Luferov commented 2 years ago

Maybe like this https://github.com/datadvance/DjangoChannelsGraphqlWs/issues/62

nikitaKaner commented 2 years ago

Thank you for the answer. I'l try it!