Hi, I am trying to setup a websockets connection between my iOS couchbase lite 1.1.0 application and sync gateway 1.1.0 and I can’t find any documentation about how I should do this. Is there any up to date documentation on what we should do? Sync gateway does have documentation and I’ve set it up to correctly receive websocket requests, it’s just the couchbase lite side that has nothing. It looks like the default connection is websocket, but this doesn’t work for us. If we don’t set customProperties.websocket = 0 then our app won’t pull all a user’s documents when they login. Our current setup for the pull replicator is:
pull = [_database createPullReplication:_remoteURL];
pull.continuous = YES;
I can see in the app it is making requests when we start the pull replication:
2015-10-23 12:32:14.856 PUSH[868:137593] Sync: CBL_Puller[https://host.com/dbws/]: Replicating from lastSequence=(null)
2015-10-23 12:32:14.863 PUSH[868:137593] SyncVerbose: CBL_Puller[https://host.com/dbws/] starting ChangeTracker: mode=3, since=(null)
2015-10-23
12:32:14.865 PUSH[868:137593] SyncVerbose:
CBLWebSocketChangeTracker[0x15f1d4c0 dbws]: GET
//host.com/dbws/_changes?feed=websocket
Then I see nothing else in the logs and on the sync gateway side it shows that it’s only looking for changes since a very high value, instead of 0:
16:31:42.539035 2015-10-23T16:31:42.539Z Cache: getCachedChanges("d0287c90-2c7a-4daf-86db-23650d74ca91_4215", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539062 2015-10-23T16:31:42.539Z Cache: getCachedChanges("2bde2091-66de-4048-9e74-f73b8085e27d_4115", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539085 2015-10-23T16:31:42.539Z Cache: getCachedChanges("d0287c90-2c7a-4daf-86db-23650d74ca91_4315", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539103 2015-10-23T16:31:42.539Z Cache: getCachedChanges("team_91f52b7d14a3554ae63836c4ffda1d8e_sync", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539120 2015-10-23T16:31:42.539Z Cache: getCachedChanges("55bb0a19-87da-4c37-91a9-f80fa6dac933_4115", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539136 2015-10-23T16:31:42.539Z Cache: getCachedChanges("605c3293-a0b5-4811-afb5-8f9242977bd9_4215", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539155 2015-10-23T16:31:42.539Z Cache: getCachedChanges("team_0d4f7df40f3585fa5370501c1b5987c1_sync", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539172 2015-10-23T16:31:42.539Z Cache: getCachedChanges("d0287c90-2c7a-4daf-86db-23650d74ca91_sync", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539189 2015-10-23T16:31:42.539Z Cache: getCachedChanges("55bb0a19-87da-4c37-91a9-f80fa6dac933_4315", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539205 2015-10-23T16:31:42.539Z Cache: getCachedChanges("d0287c90-2c7a-4daf-86db-23650d74ca91_4115", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539222 2015-10-23T16:31:42.539Z Cache: getCachedChanges("605c3293-a0b5-4811-afb5-8f9242977bd9_4115", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539238 2015-10-23T16:31:42.539Z Cache: getCachedChanges("60a5f471-1134-4a5f-8f8c-10bf2ed1ba54_4315", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539257 2015-10-23T16:31:42.539Z Cache: getCachedChanges("team_5265805abd427a6c7ee85bd151228b23_sync", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539277 2015-10-23T16:31:42.539Z Cache: getCachedChanges("60a5f471-1134-4a5f-8f8c-10bf2ed1ba54_sync", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539294 2015-10-23T16:31:42.539Z Cache: getCachedChanges("2bde2091-66de-4048-9e74-f73b8085e27d_4315", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539310 2015-10-23T16:31:42.539Z Cache: getCachedChanges("55bb0a19-87da-4c37-91a9-f80fa6dac933_sync", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539339 2015-10-23T16:31:42.539Z Cache: getCachedChanges("605c3293-a0b5-4811-afb5-8f9242977bd9_sync", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539359 2015-10-23T16:31:42.539Z Cache: getCachedChanges("605c3293-a0b5-4811-afb5-8f9242977bd9_4315", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539376 2015-10-23T16:31:42.539Z Cache: getCachedChanges("60a5f471-1134-4a5f-8f8c-10bf2ed1ba54_4115", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539393 2015-10-23T16:31:42.539Z Cache: getCachedChanges("60a5f471-1134-4a5f-8f8c-10bf2ed1ba54_4215", {0 0 250123}) --> 0 changes valid from #248963
16:31:42.539409 2015-10-23T16:31:42.539Z Cache: getCachedChanges("55bb0a19-87da-4c37-91a9-f80fa6dac933_4215", {0 0 250123}) --> 0 changes valid from #248963
So how are we supposed to configure the websocket connection so it actually asks for all changes since 0, then going forward it receives new changes that come in?