getUser

Gets the user information that is associated with the Chat instance.

Returns

Object - The object with the user information. Contains the auto-generated id, name, and iconUrl.

Example

<div id="chat"></div>
<script>
    $("#chat").kendoChat();

    var chat = $("#chat").data("kendoChat");

    console.log(chat.getUser().name);
</script>
In this article
Not finding the help you need? Improve this article