onData

open fun onData(chunk: Uint8Array<ArrayBuffer>)(source)

By default, stores data blocks in chunks[] property and glue those in onEnd. Override this handler, if you need another behaviour.