> This is a page from the ElevenLabs documentation. For a complete page index, fetch https://elevenlabs.io/docs/llms.txt. For the full documentation in a single file, fetch https://elevenlabs.io/docs/llms-full.txt.

# 事件

## 概述

事件是使用 WebSocket 的 ElevenLabs Agents 应用中实时通信的基础。
它们支持在客户端应用与服务器基础设施之间交换音频流、转录文本、智能体回复和上下文更新等信息。

了解这些事件对于构建响应迅速、可交互的对话体验至关重要。

事件分为两类：

#### [客户端事件（服务器到客户端）](/docs/zh/eleven-agents/customization/events/client-events)

从服务器发送到客户端的事件，用于传递音频、转录文本、智能体消息和系统信号。

#### [客户端到服务器事件](/docs/zh/eleven-agents/customization/events/client-to-server-events)

从客户端发送到服务器的事件，用于提供上下文更新或响应服务器请求。