django和彗星 [英] django and comet

查看:137
本文介绍了django和彗星的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在谷歌上发现的所有东西似乎已经过时了。有些人指向 orbited.org hookbox.org ,但他们现在都死了。现在人们如何解决这个问题?

解决方案

我会查看推送器,这是一个第三方服务,可以让您将事件推送到您的浏览器,并使用简单的API。他们有一个免费的沙箱计划,每天提供100k个消息和20个连接。



或者,您可以运行 APE 在服务器上推送事件。



Django不是真正设计用于长轮询和彗星。


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?

解决方案

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.

这篇关于django和彗星的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆