Consider constructing a JSContext and setting up HTML5 Server Sent Events (in essence, push for web browsers): http://www.html5rocks.com/en/tutorials/eventsource/basics/ http://en.wikipedia.org/wiki/Server-sent_events
On Wed, Jan 14, 2015 at 9:05 AM, Steve Mills <sjmi...@mac.com> wrote: > I have an opportunity to branch out to new areas (yay!) that I've never had > the chance to work with before, an iOS app that acts as the frontend for a > web site, receiving and sending Facebook- or Twitter-like statuses/updates. > The backend and web guys on the project have mentioned using AJAX. Digging > around, I've seen examples of NSURLSession and related classes being used > with AJAX (or maybe it was JSON), but they were just single one-time gets, > not stay-alive type services. > > I'd like some guidance about basic ideas and what types of objects would come > into play for creating such a thing. Like is there an NS* class that can > stick around and respond to updates from the server? Or is that done more > from the client side where a timer pings the server for updates periodically > (that sounds inefficient)? > > Any knowledgable input would be most appreciated. Thanks! > > -- > Steve Mills > Drummer, Mac geek > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/shazron%40gmail.com > > This email sent to shaz...@gmail.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com