What's the cleanest way to use Rx and inheritance?
# rx
u
What's the cleanest way to use Rx and inheritance?
g
Not sure that your question somehow specific to Rx And it’s not clear what exactly you want to achieve. Because now your code has public onSendMessageObservable method that invoked in init block (so someone can just call it and it will not be added to disposables) Also it’s usually bad practice to expose only disposable (so do side effect)