Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note to prevent misunderstanding #193

Merged
merged 3 commits into from
Nov 13, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions zh-CN/guide/console/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

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

::: note
数据交互使用 JSON 序列化,
而不是将对象直接传递至前端,
所以如果你想要使用使用后端上下文或调用远程函数, 直接返回相应内容是无法使用的!
shigma marked this conversation as resolved.
Show resolved Hide resolved
:::

## 被动推送

后端代码:
Expand Down
Loading