DisconnectReason when user closes the browser

Hi
Suppose Photon AS3 client is running inside browser's tab and user just closes the browser. I noticed that in this case Server receives ClientDiconnect as DisconnectReason in OnDisconnect() event. I want to be able to detect situations when user just closes client regardles whether he logs out or closes the browser. Can i rely on DisconnectReason?
Suppose Photon AS3 client is running inside browser's tab and user just closes the browser. I noticed that in this case Server receives ClientDiconnect as DisconnectReason in OnDisconnect() event. I want to be able to detect situations when user just closes client regardles whether he logs out or closes the browser. Can i rely on DisconnectReason?
0
Comments