最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

COMET javascript library - Stack Overflow

programmeradmin1浏览0评论

I am looking for a simple and reliable Comet javascript library. I want to keep a persistent streaming of data from my server (via PHP script) to the client side. I tried building my own using the iframe technique, but there are lots of issues with safari which I experienced. I am just hoping someone else has created a simple library for it?

I am looking for a simple and reliable Comet javascript library. I want to keep a persistent streaming of data from my server (via PHP script) to the client side. I tried building my own using the iframe technique, but there are lots of issues with safari which I experienced. I am just hoping someone else has created a simple library for it?

Share Improve this question asked May 27, 2009 at 16:17 philly77philly77 5193 gold badges8 silver badges14 bronze badges
Add a comment  | 

4 Answers 4

Reset to default 6

There is a jquery comet plugin Probably the best version though is the Dojo library

I have a quick list of commands I used to get a jetty server with comet up and running here

It's not just the javascript library that you need, but a server-side implementation as well. Depending on your needs, you'll need to pick a proper implementation.

You mentioned PHP, which is typically difficult with long-held requests. Other options include having a separate server for your comet requests, or using a SaaS solution, such as WebSync OnDemand.

Depending on which option you pick for the server, you will have one or more javascript clients available. But you need to determine your server implementation first, then use the appropriate javascript implementation to match.

Have a look at http://www.ape-project.org/ Pretty quick setup process.

have you tried JSON-RPC. Apparently Dojo has good support for it, though I haven't tried it thoroughly

JSON-RPC

Dojo Documentation

发布评论

评论列表(0)

  1. 暂无评论