add params isTyping for typing and stop typing events