# Chat Object The Chat object provides chat functionality. Members Table The following table lists the members provided by the Chat object.
Members
Properties | Description
Enabled | Whether chatting is enabled.
Nickname | Current nickname.
Methods | Description
GetUser | Returns a chat user.
GetUsers | Returns a range of chat users.
SendChatMessage | Sends a message.
Events | Description
OnChatStatusChanged | Fires when the chat status changed.
OnTextMessage | Fires when a message has been received.
OnUserConnect | Fires when a user connects.
OnUserDisconnect | Fires when a user disconnects.
OnUserInfoChanged | Fires when the user information changed.
OnUserListReceived | Fires when a user list has been received from the server.
Remarks This object is available through the object SiteCafeClient. Use the Chat object to send or receive messages. Examples The following example determines whether chatting is enabled and displays it.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe = SiteKiosk.Plugins("SiteCash").Devices("SiteCafeClient");
    alert(SiteCafe.Chat.Enabled);
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top