Ahmet
Ahmet
CCConvex Community
Created by Ahmet on 1/17/2025 in #support-community
Is it possible to listen for subscribe/unsubscribe events for queries and trigger an action?
For example, for a convex query like api.messages.list, I want to be able to query the users who are listening to it at that time. I can update the lastOnline value for each user periodically and track it with this, but this will cause an absurd number of function calls. Since the client connects to the backend via websocket, this information is actually available in the backend. But I couldn't find how to access it and trigger an action in case of disconnect.
4 replies