OnChatUserConnect Event



 
Fires when a user connects.


Syntax

    SiteCafe.Server.Chat.OnChatUserConnect = handler
    
Parameters
    sessionIndex Long value that contains the user's session index.
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 connects.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe.Server.Chat.OnChatUserConnect = OnChatUserConnect;
    function OnChatUserConnect(sessionIndex)
    {
       alert("User: " + sessionIndex);
    }
    </SCRIPT>
    

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

Back to top