开发者

Is there any iOS implementation of the Bayeux protocol (COMET, server push to client)?

开发者 https://www.devze.com 2023-01-21 04:00 出处:网络
Is there any library with implementation o开发者_JAVA百科f the Bayeux protocol, for use in iOS (iPhone/iPad) development, for the building Server push technology iPhone client?

Is there any library with implementation o开发者_JAVA百科f the Bayeux protocol, for use in iOS (iPhone/iPad) development, for the building Server push technology iPhone client?

And what are your suggestion for doing this?


Even though I haven't tried it, I would check FayeObjC:

"A simple Objective-C client library for the Faye publish-subscribe messaging server. FayeObjC is implementing on top of the zimt Objective-C web socket library and will work on both Mac and iPhone projects. JSON parsing is handled using the excellent JSONKit (github.com/johnezang/JSONKit) library which is included in the FayeObjC source folder."

For more info: http://blog.cometcoast.com/post/3668374972/fayeobjc-an-objective-c-faye-client-for-ios-mac-os

Sources: https://github.com/pcrawfor/FayeObjC


I know that this question is fairly old, but I googled and found it. Maybe this answer can help someone else:

Take a look at ddunkin cometclient library: https://github.com/ddunkin/cometclient

I haven't tested but will try it with my next project.


I suggest you to use my reimplementation FayeClient with many additional stuff like blocks and error handling MZFayeClient


I've created a fork of the DDunkin Comet client that supports ARC and client based subscription management which helps with resubscribing on disconnects. I also added a lot of block support and delegate call backs.

https://github.com/yinzara/cometclient

0

精彩评论

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

关注公众号