mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-03-29 16:39:58 +00:00
README: add receiveFile progress, clarify deleteFile takes sndDescription
This commit is contained in:
@@ -41,9 +41,11 @@ const result = await sendFile(
|
||||
)
|
||||
|
||||
// Download
|
||||
const {header, content} = await receiveFile(agent, uri)
|
||||
const {header, content} = await receiveFile(agent, uri, {
|
||||
onProgress: (downloaded, total) => console.log(`${downloaded}/${total}`)
|
||||
})
|
||||
|
||||
// Delete
|
||||
// Delete (requires sender description from upload)
|
||||
await deleteFile(agent, sndDescription)
|
||||
|
||||
// Cleanup
|
||||
|
||||
Reference in New Issue
Block a user