各种 XMPP MessageType 之间的区别?

发布于 2024-12-19 08:12:31 字数 460 浏览 1 评论 0原文

我试图弄清楚 Google App Engine XMPP 实现中的各种 MessageType 是什么。 MessageType JavaDoc完全缺乏,实际上GAE的JavaDocs的很多部分都很差。

我尝试过谷歌搜索,但找不到任何东西。这是 MessageType 的列表:

CHAT           
ERROR          
GROUPCHAT           
HEADLINE       
NORMAL

我见过人们使用 NORMAL 的代码,我不明白 NORMAL 和 CHAT 之间有什么区别。任何人都可以解释或向我指出一些好的文档吗?

I'm trying to figure out what are the various MessageType in Google App Engine XMPP Implementation. The MessageType JavaDoc is totally lacking, actually many parts of GAE's JavaDocs are very poor.

I've tried googling, but could not find anything. Here is the list of MessageType:

CHAT           
ERROR          
GROUPCHAT           
HEADLINE       
NORMAL

I've seen people's code around using NORMAL, I don't understand what could be the difference between NORMAL and CHAT. Anyone can explain or point me to some good documentation?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

看海 2024-12-26 08:12:31

来自RFC6121

聊天:

消息是在一对一聊天会话的上下文中发送的。通常,交互式客户端将在界面中呈现“聊天”类型的消息,该界面允许两方之间进行一对一聊天,包括适当的对话历史记录。 第 5.1 节 提供了有关一对一聊天会话的详细建议。

正常:

该消息是一条独立消息,在一对一对话或群聊的上下文之外发送,预计收件人会回复。通常,接收客户端将在界面中呈现“正常”类型的消息,使接收者能够回复,但没有对话历史记录。 “type”属性的默认值为“正常”。

From RFC6121 :

Chat :

The message is sent in the context of a one-to-one chat session. Typically an interactive client will present a message of type "chat" in an interface that enables one-to-one chat between the two parties, including an appropriate conversation history. Detailed recommendations regarding one-to-one chat sessions are provided under Section 5.1.

Normal :

The message is a standalone message that is sent outside the context of a one-to-one conversation or groupchat, and to which it is expected that the recipient will reply. Typically a receiving client will present a message of type "normal" in an interface that enables the recipient to reply, but without a conversation history. The default value of the 'type' attribute is "normal".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文