Thanks Jens for the information. I think it'd be great if eventsource gets supported :)
* After my first post I saw in the wiki that websockets is supported: https://github.com/couchbase/couchbase-lite-ios/wiki/WebSocket-Based-Changes-Feed I tried to use it but getting some network errors when connecting. var socket = new WebSocket( "ws://lite.couchbase./mydb/_changes?feed=websocket&include_docs=true"); WebSocket network error: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.) Well, the error is always the same no matter the URL. I presume I'm doing something wrong or is not supported but then why is it documented in the wiki? I want to believe is supported! :) On Tuesday, 4 November 2014 17:42:04 UTC, Jens Alfke wrote: > > > On Nov 4, 2014, at 3:38 AM, Juan Hernandez <[email protected] > <javascript:>> wrote: > > 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. > > > That's because Couchbase Lite doesn't support eventsource :( so it's > ignoring the parameter and just returning the default feed. > > Looks like eventsource is listed as a supported mode in our REST API docs > <http://developer.couchbase.com/mobile/develop/references/couchbase-lite/rest-api/database/get-changes/index.html>. > > Sorry about that — those docs are adapted from CouchDB docs [which > Couchbase wrote years ago] and there are some places where we didn't edit > out options that CBL doesn't support. I'll get that fixed. > > Also, we should add support for feed=eventsource since it would be useful > for PhoneGap apps. I'll file an issue > <https://github.com/couchbase/couchbase-lite-ios/issues/514>. > > —Jens > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/9bb50521-ac5a-41fa-9905-1150f98d33f6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
