Hi @f1avalanche welcome
What is the expected way to enrich the user information in this case? Even with the external analytics, which is supposed to be the primary usage as I understand, user ID may not be enough. Could you recommend?
We don’t expose the database pool or the Nakama module into the SessionStart
and SessionEnd
event. This is to encourage developers to avoid the use of those APIs in case they cause an IO storm from a stampeding herd (mass disconnect and reconnect scenario) with game clients and don’t implement a rate limiter pattern.
There is a way to utilize these types in the runtime if you need it and know how to implement the right patterns to protect your code. You can see an example of it on this forum post:
RegisterEventSessionEnd with full functionality - #2 by novabyte
Hope that helps.