Can I rally be sure that MG_EV_CLOSE happens for all client scenarios? I mean 
in the same sense as a standrad socket.



On Monday, May 23, 2016 at 11:24:51 AM UTC+2, Sergey Lyubka wrote:
>
> MG_EV_CLOSE is sent to the closing connection - do you see this event in 
> your websocket handler ?
>
> On Sun, May 22, 2016 at 12:07 PM, Ake Hedman <[email protected] 
> <javascript:>> wrote:
>
>>
>> I use moongose for a server on Linux and Windows and among other 
>> protocols I use websockets. This works well  for mots parts but I have one 
>> problem.
>>
>> My users has to log in into the server and for that do a handshake 
>> process. When logged in some session data is  allocated. Eventually they 
>> log out from the connection the session data is deallocated and everything 
>> is OK.  BUT the problem is how to know when a connected dies for some other 
>> reason. That is, the page is closed or whatever.   How do I detect this so 
>> that I can deallocate session data? 
>>
>> /Ake
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "mongoose-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/mongoose-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to