> ## Documentation Index
> Fetch the complete documentation index at: https://www.helius.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ping

> Check liveness of a Parsed Streams connection and keep quiet connections alive past the idle timeout.

Liveness check. Returns the current slot and, more importantly, counts as a client message for the idle timer.

The server closes a connection with WebSocket code 1000 after **10 minutes** with no client messages and no notifications. If your filter is narrow enough that it can legitimately go 10 minutes without a match, send `ping` on an interval shorter than that. Protocol-level WebSocket ping frames that client libraries send automatically do **not** reset the idle timer — only JSON-RPC messages do.

The server also pings every 15 seconds, so a healthy but quiet connection still carries traffic. If you see nothing at all for over a minute — no notification, no ping — assume the connection is dead and reconnect. See [Handling Reconnects](/docs/parsed-streams/guides/handling-reconnects) for the full strategy.

## Body

No parameters.

## Response

<ResponseField name="result" type="integer">
  The current slot.
</ResponseField>

<RequestExample>
  ```json Request theme={"system"}
  { "jsonrpc": "2.0", "id": 99, "method": "ping" }
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={"system"}
  { "jsonrpc": "2.0", "id": 99, "result": 430172053 }
  ```
</ResponseExample>
