Django 和彗星
我应该用什么来在 django 上实现 comet?
我在谷歌上找到的所有东西似乎都已经过时了。有些人指向 orbited.org
或 hookbox.org
,但它们现在都已经死了。现在人们如何解决这个问题呢?
What should i use to implement comet on django?
All things i've found on google seems outdated. Some people point to orbited.org
or hookbox.org
, but both of them are just dead now. How people solve this problem nowadays?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会查看 Pusher 这是一个第三方服务,它允许您通过 drop-dead 将事件推送到浏览器简单的API。他们有一个免费的沙盒计划,每天有 10 万条消息和 20 个连接。
或者,您可以在服务器上运行 APE 来下推事件。
Django 并不是真正为长轮询和彗星设计的。
I would check out Pusher which is a third party service that will allow you to push events to your browser with a drop-dead simple API. They have a free sandbox plan that comes with 100k messages per day and 20 connections.
Alternatively, you could run APE on your server to push events down.
Django isn't really designed for long polling and comet.