添加一种支持stream场景 #244
tolatolatop
started this conversation in
想法 / 建议
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
定义:stream场景是当HTTP服务端数据过大或者需要延迟处理并同步返回数据的场景。
表现为在一次响应中,一条连续的消息需要长时间的发送或者在不确定的时间间隔下被分段发送。并在客户端上接受内容被实时展示出来。
虽然当前很多平台都不支持stream消息,但已有一些web框架如chatbot-ui支持了http stream消息。
onebot应该考虑支持连续的消息的分段发送模式。
虽然某种程度上可以在应用端和实现端做适配,但这会产生多个调用或者破坏了原本的消息结构。
Beta Was this translation helpful? Give feedback.
All reactions