Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Emit transfer event during download #44

Closed
wants to merge 1 commit into from

Conversation

charlietilt
Copy link

Summary

updated the client download method to emit a transfer event on an interval with the amount transfered thus far.

Example:

client = new Scp2.Client config
    client.on 'transfer', (buffer, bytes, totalBytes) ->
      console.log "Total Bytes transfered (#{localFile}): #{totalBytes}"
    client.download remoteFile, localFile, (error) ->
      callback error, localFile

@popomore
Copy link
Member

Same as #61?

@charlietilt
Copy link
Author

Agree, same features as in #61

@popomore
Copy link
Member

And I'll close this.

@popomore popomore closed this May 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants