> ## 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

> 检查解析流连接的活跃性，并在空闲超时后保持静默连接存活。

活跃性检查。返回当前槽位，更重要的是，作为空闲计时器的客户端消息。

服务器在 **10 分钟** 内没有客户端消息且没有通知时，将使用 WebSocket 代码 1000 关闭连接。如果您的过滤器足够窄，合法地可以在 10 分钟内没有匹配，请以更短的间隔发送 `ping`。客户端库自动发送的协议级 WebSocket ping 帧**不会**重置空闲计时器 — 只有 JSON-RPC 消息才会。

服务器还每 15 秒 ping 一次，因此健康但静默的连接仍然会传输流量。如果您在超过一分钟内完全没有看到任何通知或 ping，请假设连接已断开并重新连接。请参阅 [处理重连](/docs/zh/parsed-streams/guides/handling-reconnects) 以了解完整策略。

## 正文

无参数。

## 响应

<ResponseField name="result" type="integer">
  当前槽位。
</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>
