Chat client functionality