Kapelianovych / couchdb_dart

A library for Dart developers for work with CouchDB
https://pub.dev/packages/couchdb
Other
47 stars 18 forks source link

RealTime listener. #6

Closed uwejan closed 5 years ago

uwejan commented 5 years ago

Hi, i am completely new here,my use case will require realtime API for flutter and the web, some refers me to aqueduct, some mix the first with websockts/ mqtt, been googling, and i saw that couchdb has a listenr notifications for realtime API, i have checked the examples directory found nothing about that, if couchdb is what i should use, can you example me realtime API ,please.

Kapelianovych commented 5 years ago

@uwejan hello. Do you want to get the latest changes in db across Flutter and Web platform? If it so you maybe want use changesIn() method of DatabaseModel class with value of feed parameter set to continuous. About this you may read here and here. Hope this help you)

P.S.: I realize that changesIn() method with value of feed parameter equal to continuous must return Stream for ability to listen all event from database. This functional doesn't implemented yet(