camomile-project / camomile-client-javascript

Javascript client for Camomile REST API
http://camomile-project.github.io/
MIT License
1 stars 6 forks source link

Simplify "watch" API #12

Closed hbredin closed 8 years ago

hbredin commented 8 years ago

As of today, in order to watch a corpus, we need to do two things: client.listen followed by client.watchCorpus.

It is not yet consistent with the Python client for which the client.listen equivalent is hidden from the end user. Only client.watchCorpus is needed.

Would be great to change the javascript client to match this behavior (cc @rom1504)