Fixed typo
Fixed duplicate key error
Fixed bug
Implemented onChatMessage event.