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: Jens Alfke <email@hidden>
- Date: Wed, 14 Jan 2015 11:54:38 -0800
> On Jan 14, 2015, at 10:29 AM, Shazron <email@hidden> wrote:
>
> Consider constructing a JSContext and setting up HTML5 Server Sent
> Events (in essence, push for web browsers):
The data format for these events is so brain-dead simple that it's not worth starting up a JavaScript context just to handle them. It's very easy to receive and parse the server event stream just using an NSURLConnection/NSURLSession. Every event is one or more lines of text delimited by two newlines.
https://developer.mozilla.org/en-US/docs/Server-sent_events/Using_server-sent_events#Event_stream_format
—Jens
_______________________________________________
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