PubSubHubBub 集线器
我目前正在构建一个基于 PubSubHubBub 协议的实时 Web 应用程序。但是,我遇到了几个问题。
首先,我正在寻找可以在我的服务器上运行的集线器应用程序。有几个应用程序,但大多数还不成熟,或者不支持 0.3 规范。官方的 google hub 运行在 Google App Engine 上,甚至可以在本地执行。不幸的是,“任务不会自动运行。按‘运行’按钮来执行每个任务。”
这种行为对于调试和理解工作流程很有用,但在一些实时测试中,最好不要手动调用所有任务。有没有办法通过自动运行任务来调整本地应用程序引擎?
接下来,我有一个关于规范本身的问题。 Google 参考实现提供了绑定到出点 uri + /publish
的初始发布方法。但这并没有反映在规格中。
那么有没有成熟的hub可以本地运行调试呢?或者有没有办法配置官方的谷歌应用程序引擎中心在本地运行并直接执行任务?
提前致谢
I'm currently building a live web application based upon the PubSubHubBub protocol. However, I encountered several issues.
First, I'm in search of a hub application that I can run on my server. There are several applications, but most of them are not mature yet, or they don't support the 0.3 spec. The official google hub runs on the Google App Engine and can even be executed locally. Unfortunately, "Tasks will not run automatically. Push the 'Run' button to execute each task."
This behaviour is useful for debugging and understanding the workflow, but in some live tests, it would be nice not to invoke all tasks manually. Is there a way to tweak the local app engine due automatically run tasks?
Next, I have a question concerning the spec itself. The Google reference implementation provides the initial publish method bound to the outpoint uri + /publish
. But this is not reflected in the specs.
So are there any mature hubs that can be run locally for debugging? Or are there ways to configure the offical google app engine hub to run locally and to execute tasks directly?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
新的 1.3.4 App Engine SDK 会自动运行任务。只需升级您的 SDK 即可利用它。
/publish 是集线器提供的唯一端点。根据规范的发现部分,是你做广告的那个。
The new 1.3.4 App Engine SDK automatically runs tasks. Just upgrade your SDK to take advantage of it.
/publish is the only endpoint provided by the hub. As per the discovery section of the spec, that is the one you advertise.
顺便说一句, https://github.com/pubsubhubbub/PubSubHubbub/wiki/Hubs 列出了所有目前已知的集线器和软件。
我还制作了自己的集线器来实现 0.4 规范;请参阅 https://github.com/cweiske/phubb
Btw, https://github.com/pubsubhubbub/PubSubHubbub/wiki/Hubs lists all currently known hubs and software.
I also made my own hub that implements the 0.4 spec; see https://github.com/cweiske/phubb