On Sep 25, 2015, at 2:39 AM, Brendan Duddridge <bren...@gmail.com> wrote:
Is it possible to have multiple CBL Listeners running at the same time and multiple replicators running at the same time?
Do I need to use a different port number for each listener? Or do I just use a different serviceType for each database I want to sync?
On Sep 25, 2015, at 10:00 AM, Brendan Duddridge <bren...@gmail.com> wrote:One thing to note is that each of my NSDocument instances has its own CBLManager I instantiate and keep in an ivar on my NSDocument subclass.
But maybe I need to re-think how I do that. I could always have one CBLManager at the NSApp level and just create a separate database for each NSDocument instance.
On Sep 25, 2015, at 12:16 PM, Brendan Duddridge <bren...@gmail.com> wrote:What's strange is I did some testing with renaming the document file while it was open and everything still worked fine as far as database reads and write. I haven't started syncing things yet though. I figured renaming the document while it was opened would have generated some sort of database access error, but it didn't. Strange.
On Sep 25, 2015, at 2:48 PM, Brendan Duddridge <bren...@gmail.com> wrote:
I guess I can imagine a problem if someone closes a document on one device which is still opened on another, then re-opens that document, sync wouldn't be able to automatically continue without further network discovery to determine the updated port number to connect to.