SoftAP client connected/disconnected event?

I have implemented the SoftAP HTTP in my application, but I modified it to be a page where I can get/store information from the user. What I would like know is if there is a way I can know when a client connects / disconnects.