Created basic message send/receive functionality between client and server.