Closed Matt-Jensen closed 6 years ago
Weigh cost benefit of polyfills:
In reality decorating response streams with observers doesn't make sense as Observables are for 1 way communication and RPC streams must support 2 way communication. Unfortunately providing an Observer interface to users would only create confusion when it comes time to write to a stream.
Instead this issue is about fixing the promisi-fication of streaming RPC methods, which should instead return their original grpc values.
Model push data for: subscribeInvoices, subscribeTransactions, subscribeChannelGraph, sendPayment, openChannel, and closeChannel like it was already stage 3.
Sudo implementation:
Usage: