msgGot event handling in chatroom