Text based chat client and server