implement chat messages
Merge branch 'chat'