Giter VIP home page Giter VIP logo

cometclient's Introduction

cometclient

Objective-C comet client using the Bayeux protocol

This is an updated version of the original ddunkin/cometclient that supports a set of new features

The original intended use case of this library is for an iOS application that uses JSON RESTful web services to retrieve entities and then is interested in the changes to those entities.

The simplest method uses a naming scheme for the entities that matches the channel of the updates to those same entities. (e.g. If GET /person/1 is the RESTful URL, /person/1 would be be the channel that you retrieve updates to that person from) They should share the same entity schema for the web service as the cometd service so that they can be treated the same on the client side.

New Features:

  1. Updated for ARC with all warnings fixed

  2. Additional delegates on success/failure of subscriptions and message publication

  3. Added support for block callbacks on success/failure of subscriptions and message publication

  4. Persistent subscriptions

  5. Updated

  6. Replace NSURLConnection with NSURLSession 6 Added WebSocket support through SocketRocket.

    Previously when a client timeout occured (i.e. when it had been more than x seconds between queries where x is defined as the CometD timeout on the server), all subscription information was lost. For mobile devices where momentary disconnections are not uncommon, this was extremely problematic.

    To allevaite the problem, subscription information is now maintained and resubscribed when a clientout timeout occurs.

    Additionally subscriptions can also be made persistent between intentional disconnections from the CometD server (e.g. when the app goes into the background). This means that the disconnect selector on the DDCometClient instance should be called in

cometclient's People

Contributors

ddunkin avatar mikeleo avatar hitman1711 avatar yinzara avatar jeffluon avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.