> On Jan 14, 2015, at 10:29 AM, Shazron <[email protected]> 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 protected])

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 [email protected]

Reply via email to