How to catch the events of a user connecting/disconnecting to the server

Hi everyone,
I am installing agones SDK to Nakama server. I want to catch the events of any user is connected/disconnected to the server in order to track players.
Please help

@mautoan11 You’ll need to hook into the Events feature of the server which lets you asynchronously receive information about when a SessionStart and SessionEnd occurred (i.e. socket connect and disconnect). Have a read of these docs:

Events - Heroic Labs Documentation

Hope it helps.