protocol of client-server cjmmunication. can only send and recieve text message