开发者

How can I establish a long-lived connection with jQuery for push notification?

I am trying to establish a long lived connection using jQuery. I have a URL in the form of:

http://www.sample.com/Notify?sessionId=xxxxxx

Now if I call this开发者_如何学JAVA URL with the sessionId, it is equivalent to registering for Asynchronous notifications. I am aware of ajax calls using jQuery but as I understand it, after getting some data, jQuery terminates the connection. Is there a way to make it retain the connection so that the server miht be able to push information?


Look at this post - Bayeux / Comet with jquery

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜