Added client side sending of chat messages.