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

# Ping

> Client ping to determine whether the connection is alive

<div className="api-banner">
  <span className="api-protocol ws">WSS</span>
  <span className="api-detail">ws.kraken.com</span>
  <span className="api-tag">ping</span>
</div>

Client can ping server to determine whether the connection is alive. This is an application level ping as opposed to default ping in the WebSocket standard which is server initiated.

<Tabs>
  <Tab title="Request">
    <ResponseField name="event" type="string" required>
      Value: `ping`
    </ResponseField>

    <ResponseField name="reqid" type="integer">
      Optional client originated request identifier sent as acknowledgment in the response.
    </ResponseField>
  </Tab>

  <Tab title="Response">
    <ResponseField name="event" type="string">
      Value: `pong`
    </ResponseField>

    <ResponseField name="reqid" type="integer">
      Client originated identifier for the request that initiated this response.
    </ResponseField>
  </Tab>
</Tabs>

<Panel>
  <CodeGroup>
    ```json Request theme={null}
    {
      "event": "ping",
      "reqid": 42
    }
    ```

    ```json Response theme={null}
    {
      "event": "pong",
      "reqid": 42
    }
    ```
  </CodeGroup>
</Panel>
