added ping request code to client.