Please note that this SDK relates to LivePersons legacy chat product which receives limited support and will be deprecated in the future.

It is recommended to build future integrations on top of the corresponding messaging SDK instead.

Returns the visitor's name string according to the latest events received.

Sample Code

var visitorName = chat.getVisitorName();