Skip to content
This repository has been archived by the owner on Apr 10, 2020. It is now read-only.

how to identify number of active subscribers by subscription in appsync #12

Open
ghost opened this issue Oct 31, 2019 · 1 comment
Open

Comments

@ghost
Copy link

ghost commented Oct 31, 2019

Need to keep count of how many subscribers are connected with each subscription.

For UserA, UserB are connected with SubscriptionA : then 2 is the total subscribers
For UserA are connected with SubscriptionB : then 1 is the total subscribers

Can i know when UserA unsubscribes , subscribes, disconnects, reconnects from AppSync ?

@rudyhadoux
Copy link

rudyhadoux commented Feb 20, 2020

You can add to User a boolean attribute for "a connected state". And do subscriptions linked to this attribute.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant