Originally suggested by @pke in #136
The library is missing the support for processing data that is being transferred.
Proposed solution
- Add
.onBlock(fn: (block) => void, settings?: { blockSize: number }), similar to onProgress
- Add
.onFinishStream(fn: (block) => void) which will be called instead of .onBlock when the last block of the stream arrives
Progress
Originally suggested by @pke in #136
The library is missing the support for processing data that is being transferred.
Proposed solution
.onBlock(fn: (block) => void, settings?: { blockSize: number }), similar toonProgress.onFinishStream(fn: (block) => void)which will be called instead of.onBlockwhen the last block of the stream arrivesProgress
.onBlockmethod to TypeScript code base.onFinishStreammethod to TypeScript code base.onBlockand.onFinishStreamover the bridge on Android.onBlockand.onFinishStreamover the bridge on iOS.onBlockand.onFinishStream-callbacks