Replies: 1 comment
-
The description is too vague and I don't know what to recommend as it is not clear what exactly do you mean by "maintaining a list of active realtime connections". If you trying to create "presence" like functionality, then it would depend based on what criteria you want to count a user as "present", how your application will use it and who must have access to that information (for example a "present" could mean that user that has established any realtime connection to the PocketBase server or only if the user has subscribed to a specific topic/room/channel). There are probably dozens other similar questions posted here and to the support mail (#1512, #3437, #3378, #845, #1607, #1706 and probably others) but the common thing between them is that there is no single solution for this problem because it depends on your actual use case and users fail/refuse to elaborate on this and I don't know how to help or make it more simple (see also XY problem).
If you are just printing |
Beta Was this translation helpful? Give feedback.
-
My use case: maintaining a list of active realtime connections. I am using JavaScript to extend my PB instance.
Then, I have a few questions (apologies if I have missed these in the docs):
onRealtimeConnectRequest
oronRealtimeBeforeSubscribeRequest
oronRealtimeAfterSubscribeRequest
?e.httpContext
, but this seems to always be empty.Thanks again for the awesome project!
Beta Was this translation helpful? Give feedback.
All reactions