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

# Ping

> Optional client-initiated ping to verify connectivity; server responds with a pong message.

<Note>Public channel. Connect to: `wss://wss.prime.kraken.com/ws/v1`</Note>

Pings may be optionally initiated by the client. They are not required to keep the session alive. The server will respond with a `pong` message.

## Request

<Tabs>
  <Tab title="Request Schema">
    <ParamField path="reqid" type="number" required>
      A unique number that identifies this ping request.
    </ParamField>

    <ParamField path="type" type="string" required>
      Request type. Value: `Ping`
    </ParamField>

    <ParamField path="ts" type="string" required>
      An ISO-8601 UTC string of the form `2019-02-13T05:17:32.000000Z`.
    </ParamField>

    <ParamField path="data" type="array">
      Optional list of objects that is forwarded in the response.
    </ParamField>
  </Tab>

  <Tab title="Example">
    ```json theme={null}
    {
      "reqid": 2,
      "type": "Ping",
      "ts": "2024-01-13T05:17:32.000000Z"
    }
    ```
  </Tab>
</Tabs>

## Response

<Tabs>
  <Tab title="Response Schema">
    <ParamField path="reqid" type="number" required>
      The request ID from the ping request.
    </ParamField>

    <ParamField path="type" type="string" required>
      Response type. Value: `Pong`
    </ParamField>

    <ParamField path="seqNum" type="number" required>
      Sequence number, always 0 for ping/pong.
    </ParamField>

    <ParamField path="ts" type="string" required>
      An ISO-8601 UTC string of the form `2019-02-13T05:17:32.000000Z`.
    </ParamField>

    <ParamField path="data" type="array">
      Forwarded data from the ping request, if provided.
    </ParamField>
  </Tab>

  <Tab title="Example">
    ```json theme={null}
    {
      "reqid": 2,
      "type": "Pong",
      "seqNum": 0,
      "ts": "2024-01-13T05:17:32.002500Z"
    }
    ```
  </Tab>
</Tabs>
