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");

/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(chat.getUser().name);
</script>
In this article