告诉我一些 Http 流教程或示例
您能告诉我一些 http-streaming 教程或示例(Gmail 也使用)吗?
我想为大学项目创建一个简单的聊天。
注意:我说的是 Http 流而不是长轮询。
谢谢 ;)
Could you tell me some http-streaming tutorial or example ( used also by Gmail ) ?
I want to create a simple chat for college project.
Attention: I am talking about Http-streaming and NOT long-polling.
Thanks ;)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请查看此处。关于彗星的一些很酷的介绍。还提到了 Jetty 及其免费聊天客户端,但它们是 Java 语言而不是 PHP 语言。如果我发现一些对 PHP 有用的东西,我会继续寻找并发布。仅供参考,jquery 有一个 comet 插件,但我还没有尝试过。
Check here. Some cool intro about Comet. There is also a mention for Jetty and its free chat client but they are in Java not PHP. Will keep looking and post if I find something useful with PHP. Just FYI, jquery has a plugin for comet but I haven't tried it yet.
“Comet”只是一个涵盖 HTTP 流的总称。
如需一些很好的示例,您可以查看我们的 WebSync 演示。
有关使用它的一些教程,您可以查看教程。
"Comet" is just an umbrella term that includes HTTP streaming.
For some good examples, you can check out our WebSync demos.
For some tutorials on using it, you can check out the tutorials.