Replies: 1 comment
-
Even tough I personally really like RxJS, providing an RxJS interface to this plugin is out of scope. The whole Capacitor API is promise based and all official plugins are promise based. This being said, if you are using RxJS in you app, it should be possible to wrap this plugin in an RxJS layer. There is nothing special about the promise returned by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Curious if using the BLEClient methods as observables (converting them with the "from" operator) would work just as effectively as Promises. Asking because when I convert BleClient.getConnectedDevices([]) to an observable with the "from" operator (from(BleClient.getConnectedDevices([])) and pipe the result to the "tap" operator, the "tap" operator doesn't seem to execute if the getConnectedDevices method yields an empty array. That makes me wonder if any other Rxjs operators I pipe the method's results to will get executed correctly.
Describe the solution you'd like
Would like to see support for observables
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Beta Was this translation helpful? Give feedback.
All reactions