OnUserDisconnect Event



 
Fires when a user disconnects.


Syntax

    SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient").
    Chat.OnUserDisconnect = handler
    
Parameters
    user ChatUser object that represents the user.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example displays an alert window when a user disconnects.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe = SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient");
    SiteCafe.Chat.OnUserDisconnect = OnUserDisconnect;
    function OnUserDisconnect(user)
    {
       alert("User: " + user.Nickname);
    }
    </SCRIPT>
    

Applies to
    SiteKiosk v6.2 (and later versions).

Back to top