Re: Advice for iOS web app with live feed
Re: Advice for iOS web app with live feed
- Subject: Re: Advice for iOS web app with live feed
- From: Shazron <email@hidden>
- Date: Wed, 14 Jan 2015 10:29:09 -0800
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 <email@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden