Added the protocol for communicating between client and server.