Returns the current chat state string according to the latest events received.

Sample Code

var state = chat.getState();