Skip to content

destroySoon() not working #46

@etsraphael

Description

@etsraphael

Hi, I don't know why but my end event no fire in readableStreambuffer.

`
let myReadableStreamBuffer = new streamBuffers.ReadableStreamBuffer({
frequency: 10, chunkSize: auth.data.recommendedPartSize
})

myReadableStreamBuffer.put(req.file.buffer)
myReadableStreamBuffer.destroySoon()

myReadableStreamBuffer.on('data', async (data) => {
    // upload my file by part
})

myReadableStreamBuffer.on('end', async () => {
  console.log('finished')
})

`

And I think this response is not anymore valid : #15 (comment)

My error is : TypeError: myReadableStreamBuffer.destroySoon is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions