pings a websocket and outputs the ping time