Hi,
I'm trying to use the /db/_changes feed in a phonegap application in iOS.
I have specified the parameter feed=eventsource to use server-side events but it seems Couchbase is returning the wrong MIME type and Safari Mobile aborts the connection.
This is a snippet of the code:
As soon as it executes, Safari logs the error below in the console, the onerror handler gets called and the EventSource closed.
[Error] EventSource's response has a MIME type ("application/json") that is not "text/event-stream". Aborting the connection. (index.html, line 0)
Has anybody have any luck using EventSource feed?
I'll raise a bug in the issue tracker but was just checking the forum first.
Thanks
Juan