Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

destroySoon() not working #46

Open
etsraphael opened this issue Jan 29, 2020 · 1 comment
Open

destroySoon() not working #46

etsraphael opened this issue Jan 29, 2020 · 1 comment

Comments

@etsraphael
Copy link

etsraphael commented Jan 29, 2020

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

@BruneXX
Copy link

BruneXX commented Aug 3, 2020

Hi, I have not seen that method destroySoon() in the documentation, where did you found it? is it a public method? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants