Calls when a new message has arrived.paramses the ChatSession.parammsg the incoming message.
Calls when an error occurs to send a message.paramses the ChatSession.parammsg the message which was sent.paramerror the error information.