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

# 지원되는 action

> 웹소켓 세션을 유지하고 재생하기 위해 사용 가능한 action에 대한 상세 정보입니다.

이 페이지에서는 Benzinga 웹소켓 API와 상호 작용할 때 사용할 수 있는 지원되는 action을 나열합니다. 이러한 action은 세션 상태를 유지하고 최근 메시지 기록에 접근하는 데 도움이 됩니다.

<Note>
  `list` action으로 반환되는 메시지 개수는 제어할 수 없습니다. 실제 개수는 특정 키에 대해 현재 캐시되어 있는 메시지 수에 따라 달라집니다.
</Note>

<div id="available-actions">
  ## 사용 가능한 동작
</div>

| Action   | 설명                                                                            | 예시       |
| -------- | ----------------------------------------------------------------------------- | -------- |
| `replay` | 마지막 최대 100개의 메시지를 다시 전송합니다. 반환되는 메시지 수는 해당 키에 대한 캐시의 사용 가능 여부에 따라 달라질 수 있습니다. | `replay` |
| `ping`   | 하트비트(heartbeat) 신호를 보내 웹소켓 세션을 유지합니다.                                         | `ping`   |

<div id="example-usage">
  ## 사용 예시
</div>

**다음 형식을 사용하여 웹소켓 클라이언트에서 action을 전송합니다.**
ping 사용 예시:

```bash theme={null}
ping
```

응답:

```bash theme={null}
pong
```

리플레이 사용 예:

```bash theme={null}
replay
```

응답:

```json theme={null}
{
  "id": "unique-uuid-for-response",
  "api_version": "websocket/v1",
  "kind": "stream_type",
  "data": {
    "action": "created/updated/deleted",
    "id": "insight-id",
    "content": {
      ...  
    },
    "timestamp": "2024-10-08T10:00:00Z"
  }
}
```
