Pings the PEcAn API server (using the URL passed in the server object) to see if it is live or not. Hits the /api/ping API endpoint

ping(server)

Arguments

server

Server object obtained using the connect() function

Value

Response obtained from the /api/ping endpoint

Author

Tezan Sahu

Examples

server <- connect(url="http://pecan.localhost:80", username="carya", password="illinois")
res <- ping(server)
#> Sorry! Server not responding.