I was actually looking for a way to bind to a disconnect event when the browser disconnects from the websocket. I noticed that when the connect command is issued a user obj is stored in a hash and subsequently never released unless you do so from the client end which can't always happen.
So ideally I would like a callback every time the web socket is closed so I can iterate all sessid on that session, and free the resources from the hash of sessid. I found where this happens so really what I need is the code path to get from the fd number of the web socket to all the sessid associated with it. On Jul 3, 2011 1:51 PM, "Anthony Catel" <[email protected]> wrote: > Hi, > > What callback? > > Le 02/07/2011 00:42, Anthony Minessale a écrit : >> Hi, >> >> in a module callback when you are passed just client and g_ape, is >> there a code path to resolve the userid for that connection? >> >> > > -- > You received this message because you are subscribed to the Google > Groups "APE Project" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/ape-project?hl=en > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ > Git Hub : http://github.com/APE-Project/ -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
