graphql-gun
graphql-gun copied to clipboard
Configurable subscription interface (RxJS, co, CSP, callback, etc...)
I started with an iterator over promises and it turned out to be a bit much, so I switched to a promise factory like you get with co.wrap. I like this solution, but there are so many subscription options it would be nice to be able to drop an arbitrary one in.
Thanks, I'm probably going to have a configurable observable interface, and maybe a separate library that exports configurations for different technologies.
The way redux approaches this is having a terribly simple event-based subscription (store.subscribe(cb)) that can trivially be adapted to any observer library, etc.
In that case, though very poorly documented, the subscription interface currently in place has a bunch of different interfaces that would be trivial to hook up to an observer library.