使用 AppEngine XMPP 进行客户端通知

发布于 2024-08-14 08:18:14 字数 210 浏览 1 评论 0原文

我一直在寻找一种方法来告诉客户有关过期对象的信息,AppEngine 的 XMPP 实现似乎非常有趣,因为它具有可扩展性、应该可靠并且可以包含最多 100kb 的数据。

  1. 但据我了解,在客户可以收听消息之前,他应该拥有一个 Gmail 帐户。这是非常不切实际的。

  2. 是否有办法使临时只读 XMPP 帐户与此一起使用?

I've been looking for a way to tell clients about expired objects and AppEngine's XMPP implementation seems really interesting because it's scalable, should be reliable and can contain up to 100kb of data.

  1. But as I understand it, before a client can listen to messages, he should have a gmail account. That's very impractical.

  2. Is there maybe a way to make temporary readonly XMPP accounts to use with this?

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

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

发布评论

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

评论(3

旧街凉风 2024-08-21 08:18:14
  1. 不,这不是真的:您可以让 AppEngine 机器人作为任何基于 Jabber/XMPP 的网络的联系人。

除非您正在谈论需要 GMAIL 帐户来创建 AppEngine 机器人...在这种情况下,是的,您需要有一个 Google 帐户。

  1. No this isn't true: you can have the AppEngine robot as contact over any Jabber/XMPP based networks.

Unless you are talking about the need for a GMAIL account to create an AppEngine robot... in which case YES you need to have a Google account.

并安 2024-08-21 08:18:14

在这种情况下,我将在示例中每 5 分钟执行一次 ajax 调用来检查它。

它很容易实现,并且可以最大限度地减少交换的数据(利用谷歌应用程序的“快速查询/响应”bonifications)。

问候。

In that situation, I would perform ajax calls every 5 minutes in example to check it.

It's easy to implement and the data exchanged can be reduced to the max (taking advantage of "fast query/response" bonifications of google-app).

Regards.

花落人断肠 2024-08-21 08:18:14

jldupont 对于第一点来说是正确的:任何 JID 都应该工作:)

对于第二点,唯一的选择可能是建立自己的服务器并允许匿名访问+临时帐户。

jldupont has it right for the first point : any JID should work :)

For the 2nd point, the only option is probably to set up your own server and allow anonymous access + temporary accounts.

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