Update Client.go

Added functionality to support to read messages from  server and write messages to the server