> For the complete documentation index, see [llms.txt](https://socket.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://socket.gitbook.io/docs/2-wen-dang-docs/2.1-gai-lan/sending_and_receiving_events.md).

# 2.1.6 发送和接收事件

`Socket.io`允许你发送和接收自定义事件，除了`connect`、`message` 和 `disconnect`，你都可以发送自定义事件：
