Skip to content

Commit

Permalink
Add note to prevent misunderstanding (#193)
Browse files Browse the repository at this point in the history
Co-authored-by: Shigma <[email protected]>
  • Loading branch information
CyanChanges and shigma authored Nov 13, 2024
1 parent 09430aa commit 22e7999
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zh-CN/guide/console/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Koishi 控制台前后端的数据交互基本是通过 WebSocket 实现的。为了适应不同的场景,我们提供了多种数据交互的形式。

::: tip
在前后端之间传递的数据需要经过 JSON 序列化,因此请避免传入函数和自引用对象等无法被 JSON 序列化的内容。
:::

## 被动推送

后端代码:
Expand Down

0 comments on commit 22e7999

Please sign in to comment.